mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-26 16:26:35 -06:00
This commit is contained in:
parent
ae813a536e
commit
a122dba0ad
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user