mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 13:02:24 +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
@ -4,6 +4,7 @@ Yii Framework 2 Change Log
|
||||
2.0.16 under development
|
||||
------------------------
|
||||
|
||||
- Bug #16974: Regular Expression Validator to include support for 'u' (UTF-8) modifier (Dzhuneyt)
|
||||
- Chg #16941: Set `yii\console\controllers\MigrateController::useTablePrefix` to true as default value (GHopperMSK)
|
||||
- Bug #16966: Fix ArrayExpression support in related tables (GHopperMSK)
|
||||
- Bug #16891: Fixed Pagination::totalCount initialized incorrectly (taobig)
|
||||
|
||||
@ -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