James Cole 2023-03-08 20:40:51 +01:00
parent ae813a536e
commit a122dba0ad
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80
2 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@ trait ConvertsDataTypes
$string = str_replace($secondSearch, '', $string);
// clear zalgo text (TODO also in API v2)
$string = preg_replace('/\pM/u', '', $string);
$string = preg_replace('/(\pM{2})\pM+/u', '\1', $string);
if (null === $string) {
return null;
}

View File

@ -423,7 +423,7 @@ class Steam
];
// clear zalgo text
$string = preg_replace('/\pM/u', '', $string);
$string = preg_replace('/(\pM{2})\pM+/u', '\1', $string);
return str_replace($search, '', $string);
}