Extend trimming in MDNodaRepository to cover weird whitespaces
This commit is contained in:
2 files changed
+3
-1
No files matched your search
@@ -799,7 +799,7 @@ public static function validateBnfId(string $id):string|false {
|
||||
*/
|
||||
public function validateId(string $id):string|false {
|
||||
|
||||
$id = rtrim($id, " ,\t~-");
|
||||
$id = rtrim($id, " ,\t~- ");
|
||||
|
||||
return match($this) {
|
||||
self::allgemein => filter_var($id, FILTER_VALIDATE_URL),
|
||||
|
||||
Reference in new issue
Block a user