Extend blacklist for given names
This commit is contained in:
@@ -104,6 +104,13 @@ final class NodaBlacklistedTerms {
|
|||||||
'Dr',
|
'Dr',
|
||||||
'Frau',
|
'Frau',
|
||||||
'Herr',
|
'Herr',
|
||||||
|
'Amtsmann',
|
||||||
|
'Prof.',
|
||||||
|
'Prof. Dr.',
|
||||||
|
'Hofdruckerei',
|
||||||
|
'Dt',
|
||||||
|
'Gr',
|
||||||
|
'Senatsbaudirektor',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
@@ -222,7 +229,7 @@ final class NodaBlacklistedTerms {
|
|||||||
*/
|
*/
|
||||||
public static function checkActorGivenNameIsBlacklisted(string $given_name):bool {
|
public static function checkActorGivenNameIsBlacklisted(string $given_name):bool {
|
||||||
|
|
||||||
if (in_array($given_name, self::ACTOR_GIVEN_NAMES_BLACKLIST)) return true;
|
if (in_array(trim($given_name, ' ()[]?'), self::ACTOR_GIVEN_NAMES_BLACKLIST)) return true;
|
||||||
else return false;
|
else return false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user