fix logic of preg_match function
This commit is contained in:
parent
9d4f928ee2
commit
641639f901
|
@ -15,7 +15,7 @@ class SmcCartValidator implements CartValidatorInterface
|
|||
if ($input === null) {
|
||||
return true;
|
||||
}
|
||||
if (preg_match('/[^\p{Common}\p{Latin}]/u', $input)) {
|
||||
if (preg_match('/[^\p{Common}\p{Latin}]/u', $input) === 0) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue