mirror of
https://github.com/valitydev/checkout.git
synced 2024-11-06 10:35:20 +00:00
Add Unicode flag for field pattern validator (#290)
This commit is contained in:
parent
e853f8a084
commit
435a0190b9
@ -64,7 +64,7 @@ const createValidator =
|
||||
return validatePhone(value);
|
||||
}
|
||||
if (pattern) {
|
||||
return !new RegExp(pattern).test(value);
|
||||
return !new RegExp(pattern, 'u').test(value);
|
||||
}
|
||||
if (required) {
|
||||
return !value || !value.trim();
|
||||
|
Loading…
Reference in New Issue
Block a user