From 267efadac7ad21c5f6b1b163ec5bc305ed4cdc84 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Wed, 22 Feb 2017 21:17:54 +0100 Subject: [PATCH] Collation: Allow uppercase letters in UCA collations' names We have several such collations defined in IcuCollation: * bs-Cyrl * de-AT@collation=phonebook * fr-CA * sr-Latn They couldn't actually be used. Change-Id: I3a62073583c49d3e90910aa8240fe9fcc0682386 --- includes/collation/Collation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/collation/Collation.php b/includes/collation/Collation.php index 7659d6c4d5..d67bc7eecd 100644 --- a/includes/collation/Collation.php +++ b/includes/collation/Collation.php @@ -67,7 +67,7 @@ abstract class Collation { return new CollationFa; default: $match = []; - if ( preg_match( '/^uca-([a-z@=-]+)$/', $collationName, $match ) ) { + if ( preg_match( '/^uca-([A-Za-z@=-]+)$/', $collationName, $match ) ) { return new IcuCollation( $match[1] ); } -- 2.20.1