Skip to content

Commit 8d52521

Browse files
Updated pattern
1 parent 9f7e448 commit 8d52521

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Rules/LandLineVN.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class LandLineVN extends AbstractStaticRegexRule
1616

1717
public static function pregFormat(): string
1818
{
19-
return strtr('/^(\+?84|0)(::head::)\d{7}$/', '::head::', implode('|', [
19+
return strtr('~^(\+?84|0)(::head::)\d{7}$~', '::head::', implode('|', [
2020
'20[3-9]',
2121
'21[0-689]',
2222
'22[0-25-9]',

src/Rules/MobileVN.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class MobileVN extends AbstractStaticRegexRule
1616

1717
public static function pregFormat(): string
1818
{
19-
return strtr('/^(\+?84|0)(::head::)\d{7}$/', '::head::', implode('|', [
19+
return strtr('~^(\+?84|0)(::head::)\d{7}$~', '::head::', implode('|', [
2020
'3[2-9]',
2121
'5[2689]',
2222
'7(0|[6-9])',

0 commit comments

Comments
 (0)