Fixes #16974: Regular Expression Validator to include support for 'u' (UTF-8) modifier

This commit is contained in:
Dzhuneyt
2019-01-03 22:12:42 +02:00
committed by Alexander Makarov
parent e0e73cf5b5
commit a790685e66
3 changed files with 7 additions and 1 deletions

View File

@ -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;