PMCORE-3844
This commit is contained in:
committed by
Mauricio Veliz
parent
7bb67a97bd
commit
9f1b738093
@@ -61,7 +61,7 @@ class MatchValidator implements BasicValidator
|
||||
private function prepareRegexp($exp)
|
||||
{
|
||||
// remove surrounding '/' marks so that they don't get escaped in next step
|
||||
if ($exp{0} !== '/' || $exp{strlen($exp)-1} !== '/' ) {
|
||||
if ($exp[0] !== '/' || $exp[strlen($exp)-1] !== '/' ) {
|
||||
$exp = '/' . $exp . '/';
|
||||
}
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ class NotMatchValidator implements BasicValidator
|
||||
private function prepareRegexp($exp)
|
||||
{
|
||||
// remove surrounding '/' marks so that they don't get escaped in next step
|
||||
if ($exp{0} !== '/' || $exp{strlen($exp)-1} !== '/' ) {
|
||||
if ($exp[0] !== '/' || $exp[strlen($exp)-1] !== '/' ) {
|
||||
$exp = '/' . $exp . '/';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user