Skip to content

Commit 345345d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 256af88 commit 345345d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

strings/phone_number_validator.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import re
2+
3+
24
def validate_phone_number(phone: str) -> bool:
35
"""
46
Validates a 10-digit Indian phone number.
@@ -11,5 +13,5 @@ def validate_phone_number(phone: str) -> bool:
1113
>>> validate_phone_number("abcdedad")
1214
False
1315
"""
14-
pattern = r'^[6-9]\d{9}$'
16+
pattern = r"^[6-9]\d{9}$"
1517
return re.fullmatch(pattern, phone) is not None

0 commit comments

Comments
 (0)