Add more IBAN filters

This commit is contained in:
James Cole
2024-05-18 06:42:09 +02:00
parent 0b63ba26bb
commit cd7ddd1c61
10 changed files with 30 additions and 6 deletions

View File

@@ -681,11 +681,13 @@ class Steam
"\u{202F}", // narrow no-break space
"\u{3000}", // ideographic space
"\u{FEFF}", // zero width no -break space
"\x20", // plain old normal space
"\x20", // plain old normal space,
' '
];
// clear zalgo text
$string = preg_replace('/(\pM{2})\pM+/u', '\1', $string);
$string = preg_replace('/\s+/', '', $string);
return str_replace($search, '', $string);
}