mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 04:37:42 +08:00
Fixes #16974: Regular Expression Validator to include support for 'u' (UTF-8) modifier
This commit is contained in:
committed by
Alexander Makarov
parent
e0e73cf5b5
commit
a790685e66
@ -2318,7 +2318,7 @@ class BaseHtml
|
||||
$pattern = substr($pattern, 0, $pos + 1);
|
||||
}
|
||||
if (!empty($flag)) {
|
||||
$pattern .= preg_replace('/[^igm]/', '', $flag);
|
||||
$pattern .= preg_replace('/[^igmu]/', '', $flag);
|
||||
}
|
||||
|
||||
return $pattern;
|
||||
|
||||
Reference in New Issue
Block a user