Przeglądaj źródła

[ZF-9242] Zend_Locale:

- fixed UTF regex behaviour

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@21348 44c647ce-9c0f-0410-b52a-842ac1e357ba
thomas 16 lat temu
rodzic
commit
b09e567a65
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      library/Zend/Locale/Format.php

+ 2 - 2
library/Zend/Locale/Format.php

@@ -522,7 +522,7 @@ class Zend_Locale_Format
     private static function _getRegexForType($type, $options)
     {
         $decimal  = Zend_Locale_Data::getContent($options['locale'], $type);
-        $decimal  = preg_replace('/[^#0,;\.\-Ee]/', '',$decimal);
+        $decimal  = preg_replace('/[^#0,;\.\-Ee]/u', '',$decimal);
         $patterns = explode(';', $decimal);
 
         if (count($patterns) == 1) {
@@ -608,7 +608,7 @@ class Zend_Locale_Format
                 }
             }
 
-            $regex[$pkey] .= '$/';
+            $regex[$pkey] .= '$/u';
         }
 
         return $regex;