fix logic and tests, update docker CI file
This commit is contained in:
@@ -25,8 +25,8 @@ class BadgeTextFormatter
|
||||
{
|
||||
$s = (string) $s;
|
||||
$s = str_replace(["\xC2\xA0", "\xA0"], ' ', $s);
|
||||
$s = preg_replace('/\s+/u', ' ', $s) ?? $s;
|
||||
$s = preg_replace('/[\x00-\x08\x0B-\x0C\x0E-\x1F\x7F]/u', '', $s) ?? $s;
|
||||
$s = preg_replace('/\s+/u', ' ', $s) ?? $s;
|
||||
|
||||
return trim($s);
|
||||
}
|
||||
@@ -203,4 +203,4 @@ class BadgeTextFormatter
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user