From: Bartosz DziewoƄski Date: Wed, 22 Feb 2017 20:17:54 +0000 (+0100) Subject: Collation: Allow uppercase letters in UCA collations' names X-Git-Tag: 1.31.0-rc.0~4025^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=267efadac7ad21c5f6b1b163ec5bc305ed4cdc84;p=lhc%2Fweb%2Fwiklou.git 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 --- 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] ); }