Add lowercase ndb/adb to list of readable noda repository names
This commit is contained in:
parent
7fb7bb83c1
commit
9bca8f400e
|
@ -72,6 +72,7 @@ enum MDNodaRepository implements MDValueEnumInterface, JsonSerializable {
|
|||
'MBL' => self::mbl,
|
||||
'mindat.org' => self::mindatorg,
|
||||
'moebeltypologie' => self::moebeltypologie,
|
||||
'ndb/adb' => self::ndb_adb,
|
||||
'NDB/ADB' => self::ndb_adb,
|
||||
'ndl' => self::ndl,
|
||||
'ndp-ikmk' => self::ndp_ikmk,
|
||||
|
@ -364,7 +365,7 @@ enum MDNodaRepository implements MDValueEnumInterface, JsonSerializable {
|
|||
else if (substr($id, 0, 1) === 'n') {
|
||||
if (filter_var(trim(substr($id, 1), '0'), FILTER_VALIDATE_INT) === false) return false;
|
||||
}
|
||||
else throw new MDgenericInvalidInputsException("LOC IDs must start with n or nr or nb");
|
||||
else throw new MDgenericInvalidInputsException("LOC IDs must start with n or nr or nb (provided: " . strip_tags($id) . ")");
|
||||
|
||||
return (string)$id;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user