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

+2
View File
@@ -126,8 +126,10 @@ public static function bnfIdForValidationProvider():Generator {
public static function gndIdForValidationProvider():Generator {
yield "Full URL, http / 102423008" => ["102423008", "http://d-nb.info/gnd/102423008"];
yield "Full URL, http / 118572636" => ["118572636", "http://d-nb.info/gnd/118572636     "];
yield "Full URL, https / 102423008" => ["102423008", "https://d-nb.info/gnd/102423008"];
yield "Full URL, http, superfluous spaces / 102423008" => ["102423008", "http://d-nb.info/gnd/ 102423008"];
yield "Full URL, http, superfluous spaces at the end / 102423008" => ["102423008", "http://d-nb.info/gnd/102423008 "];
yield "Full URL, http / 1037602218" => ["1037602218", "http://d-nb.info/gnd/1037602218"];
yield "Full URL, GND Explorer / 1037602218" => ["1037602218", "https://explore.gnd.network/gnd/1037602218"];