diff options
| author | Bobby <[email protected]> | 2022-08-31 00:08:18 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-08-31 00:08:18 -0400 |
| commit | a691f59501d0781cdc2259b14e8facd264e82126 (patch) | |
| tree | 2f5d2272124a156acb5e4b684d7bf89d748d34b0 /src | |
| parent | c6344afd77b8bf5baeb67fee8270ca24c555ec6c (diff) | |
| download | edify-a691f59501d0781cdc2259b14e8facd264e82126.tar.xz edify-a691f59501d0781cdc2259b14e8facd264e82126.zip | |
Fixed Linting Errors
Diffstat (limited to 'src')
| -rw-r--r-- | src/edify/library/__init__.py | 2 | ||||
| -rw-r--r-- | src/edify/library/phone.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/edify/library/__init__.py b/src/edify/library/__init__.py index 549cd4c..5411d36 100644 --- a/src/edify/library/__init__.py +++ b/src/edify/library/__init__.py @@ -1,5 +1,5 @@ # flake8: noqa # Import everything from the library. -from .phone import phone_number from .mail import email +from .phone import phone_number diff --git a/src/edify/library/phone.py b/src/edify/library/phone.py index 5c271af..90ab535 100644 --- a/src/edify/library/phone.py +++ b/src/edify/library/phone.py @@ -2,6 +2,7 @@ import re pattern = "^\\+?\\d{1,4}?[-.\\s]?\\(?\\d{1,3}?\\)?[-.\\s]?\\d{1,4}[-.\\s]?\\d{1,4}[-.\\s]?\\d{1,9}$" + def phone_number(phone: str) -> bool: """Checks if a string is a valid phone number. |
