forked from museum-digital/MDAllowedValueSets
Allow Wikipedia links from the Chinese Wikipedia
This commit is contained in:
1 file changed
+2
@@ -615,6 +615,8 @@ public static function validateWikipediaId(string $id):string|false {
|
|||||||
'https://ru.wikipedia.org/wiki/' => '',
|
'https://ru.wikipedia.org/wiki/' => '',
|
||||||
'http://uk.wikipedia.org/wiki/' => '',
|
'http://uk.wikipedia.org/wiki/' => '',
|
||||||
'https://uk.wikipedia.org/wiki/' => '',
|
'https://uk.wikipedia.org/wiki/' => '',
|
||||||
|
'http://zh.wikipedia.org/wiki/' => '',
|
||||||
|
'https://zh.wikipedia.org/wiki/' => '',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if (str_contains($validation, "/")) return false;
|
if (str_contains($validation, "/")) return false;
|
||||||
|
|||||||
Reference in new issue
Block a user