Merge "Collation: Allow uppercase letters in UCA collations' names"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 22 Feb 2017 21:18:48 +0000 (21:18 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 22 Feb 2017 21:18:49 +0000 (21:18 +0000)
includes/collation/Collation.php

index 7659d6c..d67bc7e 100644 (file)
@@ -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] );
                                }