wiki.techinc.nl/tests/phpunit/unit/includes/language
Nikki f572f4c159 Make isWellFormedLanguageTag() actually case insensitive
BCP 47 language tags are case insensitive. At the moment,
isWellFormedLanguageTag() lowercases the language tag to be checked, but
the regex contains uppercase characters, which means it will incorrectly
return false for a language tag like "en-GB-oed".

This changes the regex to use lowercase letters throughout, for
consistency, since it doesn't use capital letters in other places where
they would normally be used, but also makes it do a case-insensitive
match instead of trying to make sure the case for the regex and language
tag are the same. This should reduce the chance of it breaking if
someone later re-adds capital letters to the regex.

Change-Id: Iacf87d37c7ac515c350399f99e05e3f5bace9b90
2023-11-15 15:27:32 +00:00
..
LanguageCodeTest.php Make isWellFormedLanguageTag() actually case insensitive 2023-11-15 15:27:32 +00:00
LanguageFactoryTest.php Namespace Config-related classes under \MediaWiki\Config 2023-09-21 05:41:58 +00:00
LanguageFallbackTest.php Tests: add LanguageNameUtils to DummyServicesTrait 2023-02-02 20:50:48 +00:00
LanguageFallbackTestTrait.php Language: Remove deprecated functions and constants 2023-08-06 00:53:30 +02:00
LanguageNameUtilsTest.php Create 'x-xss' language code feature 2023-09-28 15:50:11 +02:00
LanguageNameUtilsTestTrait.php Create 'x-xss' language code feature 2023-09-28 15:50:11 +02:00
LanguageTest.php Implement Language::isSameCodeAs() 2023-10-04 12:29:57 -04:00
LCStoreStaticArrayTest.php tests: Change use of AtEase to at operator 2022-02-24 21:29:51 +00:00
LocalisationCacheTest.php LocalisationCache: Add CORE_ONLY_KEYS, ALL_EXCEPT_CORE_ONLY_KEYS 2023-07-28 16:32:59 +02:00