Auto-deploy: 2026-08-05 18:00:26
This commit is contained in:
@@ -534,15 +534,8 @@ PROMPT;
|
|||||||
'/helpful|result|feedback|notification|message|your profile|match|tips|about the job|^\d/i',
|
'/helpful|result|feedback|notification|message|your profile|match|tips|about the job|^\d/i',
|
||||||
$rawTitle
|
$rawTitle
|
||||||
);
|
);
|
||||||
// Real job titles carry a role noun. Requiring one rejects stray UI
|
|
||||||
// strings without hardcoding a list of every possible title.
|
|
||||||
$hasRoleNoun = preg_match(
|
|
||||||
'/engineer|developer|architect|lead|manager|consultant|specialist|analyst|designer|' .
|
|
||||||
'programmer|scientist|director|head of|principal|staff|senior|founding|cto|technologist/i',
|
|
||||||
$rawTitle
|
|
||||||
);
|
|
||||||
|
|
||||||
if ($rawTitle === '' || $looksLikeUiText || !$hasRoleNoun) {
|
if ($rawTitle === '' || $looksLikeUiText) {
|
||||||
$rawTitle = $id['primaryTitle'];
|
$rawTitle = $id['primaryTitle'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user