Skip to content

fix: correct phone masks for Israel, UAE, and Germany#16

Open
itaisatati wants to merge 3 commits intoanday013:mainfrom
itaisatati:itai/fix-israel-phone-mask
Open

fix: correct phone masks for Israel, UAE, and Germany#16
itaisatati wants to merge 3 commits intoanday013:mainfrom
itaisatati:itai/fix-israel-phone-mask

Conversation

@itaisatati
Copy link
Copy Markdown

@itaisatati itaisatati commented Apr 15, 2026

Fixed 3 entries in MASK_PER_COUNTRY:

  • IL (Israel, +972): Fixed-line numbers are 8 digits but mobile numbers (prefixes 50–59) are 9 digits — extended mask from X-XXX-XXXX to XX-XXX-XXXX.
  • AE (UAE, +971): Same pattern — landlines are 8 digits but mobile numbers (prefixes 50–58) are 9 digits — extended mask from X-XXX-XXXX to XX-XXX-XXXX.
  • DE (Germany, +49): German numbers after +49 are 10 digits (3-digit area/mobile code + 7-digit subscriber number). Updated mask from XXX-XXX to (XXX) XXX-XXXX.

The IL mask (X-XXX-XXXX) only covered 8-digit fixed-line numbers.
Mobile numbers (prefixes 50-59) require 9 digits (XX-XXX-XXXX),
making it impossible to enter a valid Israeli mobile number.
The AE mask (X-XXX-XXXX) only covered 8-digit landline numbers.
Mobile numbers (prefixes 50-58) require 9 digits (XX-XXX-XXXX),
making it impossible to enter a valid UAE mobile number.
The DE mask (XXX-XXX) was only 6 digits, making it impossible to enter
any valid German number. German numbers after +49 are 10 digits:
3-digit area/mobile code + 7-digit subscriber number (e.g. 151-XXXXXXX
for mobile, 30-XXXXXXXX for Berlin). Updated to (XXX) XXX-XXXX.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant