fix(isMobilePhone): update Albanian phone number regex for valid formats by nichoola · Pull Request #2534 · validatorjs/validator.js

Properly validates the Albanian mobile phone numbers
fix(isMobilePhone): update Albanian phone number regex

I've updated the regex rule for the Albanian mobile phone numbers format based on the ITU specifications and the official docs from the Albanian authorities. I've updated the samples for the tests.

Please see the mobile phone numbers format for Albania specified on the page 3 of the pdf from the ITU website or the page 4 of the .pdf from the AKEP(Albanian Electronic and Postal Communications Authority). Sent.dm specifies that only 67, 68 and 69 prefixes are currently assigned, but the entire 62-69 range is valid.

Checklist

  • PR contains only changes related; no stray files, etc.
  • README updated (where applicable)
  • Tests written (where applicable)
  • References provided in PR (where applicable)