Extend trimming in MDNodaRepository to cover weird whitespaces

This commit is contained in:
jrenslin committed 2026-11-24 16:52:33 +01:00
1 parent 015c495eca
commit 511847b9ac
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -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),