Skip to content

Commit 03e3367

Browse files
committed
update region_DP to include fixed_line, and fix sandbox location
1 parent 5c313aa commit 03e3367

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/update-phonenumbers-lib.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ jobs:
5050
REGISTRY_VERSION=$(gcloud artifacts versions list \
5151
--package=dialpad-phonenumbers \
5252
--repository=python-packages-sandbox \
53-
--location=us-central1 \
53+
--location=us \
54+
--project=dp-artifacts-sandbox \
5455
--format='value(name)' \
5556
--sort-by='~create_time' | head -n 1 | awk -F/ '{print $NF}' | cut -d. -f1-3)
5657

python/phonenumbers/data/region_DP.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
PHONE_METADATA_DP = PhoneMetadata(id='DP', country_code=803, international_prefix=None,
55
general_desc=PhoneNumberDesc(national_number_pattern='\\d{10}', example_number='1000000141', possible_length=(10,)),
6-
voip=PhoneNumberDesc(national_number_pattern='\\d{10}', example_number='1000000141', possible_length=(10,)),
6+
fixed_line=PhoneNumberDesc(national_number_pattern='1\\d{9}', example_number='1000000141', possible_length=(10,)),
7+
voip=PhoneNumberDesc(national_number_pattern='2\\d{9}', example_number='2000000141', possible_length=(10,)),
78
number_format=[NumberFormat(pattern='(\\d{3})(\\d{7})', format='\\1\\2')],
89
leading_zero_possible=False)

0 commit comments

Comments
 (0)