Explorar o código

[Locale] slightly adjust regex for matching quotes

Igor Wiedler %!s(int64=14) %!d(string=hai) anos
pai
achega
d3a63d35d4

+ 1 - 1
src/Symfony/Component/Locale/Stub/StubIntlDateFormatter.php

@@ -59,7 +59,7 @@ class StubIntlDateFormatter
         $specialCharsMatch = implode('|', array_map(function($char) {
             return $char . '+';
         }, $specialCharsArray));
-        $quoteMatch = "'(?>(?>[^']+|'{2}+|)?)'";
+        $quoteMatch = "'(?>(?>[^']+|'{2}+)?)'|'{2}";
         $regExp = "/($quoteMatch|$specialCharsMatch)/";
 
         $callback = function($matches) use ($dateTime) {