validatorjs/validator.js

Missing validation for Macedonian phone numbers

Open

#2 497 ouverte le 14 nov. 2024

Voir sur GitHub
 (11 commentaires) (0 réactions) (1 assigné)JavaScript (22 497 stars) (2 253 forks)batch import
good first issuepr-raised🐛 bug

Description

Explanation validator.isMobilePhone cannot validate a good (valid) Macedonian phone number.

The macedonian number starts with +389, and is followed by 8 digits, or if written with national prefix (0), it will be 9 digits in length.

Additional context Validator.js version: v.13.11.0 Node.js version: v23.1.0

Guide contributeur