propelorm/Propel — Issue #300: prepareRegexp() method in (Not)MatchValidator and PCRE flags
Author: solisted
Created: 2012-02-23 09:51:30+00:00
State: open

Automatic cheking and placement of surrounding '/' marks in method prepareRegexp() making use of PCRE flags in pattern impossible:

if ($exp{0} !== '/' || $exp{strlen($exp)-1} !== '/' ) {
$exp = '/' . $exp . '/';
}

This is very important issue for international languages. For example, following match rule, applied to unicode string with cyryllic characters, will not work as it should: