Skip to content

fix(isMobilePhone): improve el-CY locale #2514

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 27, 2025
Merged

Conversation

rezk2ll
Copy link
Contributor

@rezk2ll rezk2ll commented Jan 7, 2025

changes

updated the isMobilePhone function to validate Cyprus mobile phone numbers correctly:

  • updated the Regex to account for 97 95 94 missing mobile phone prefixes.

valid Cyprus mobile phone numbers

Screenshot from 2025-01-07 09 06 27

Checklist

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

closes #2513

@rubiin rubiin requested a review from WikiRik March 16, 2025 13:26
@WikiRik WikiRik changed the title 🐛 fix(isMobilePhone): fix Cyprus mobile phone numbers validation fix(isMobilePhone): improve el-CY locale Mar 26, 2025
@WikiRik WikiRik requested a review from rubiin March 26, 2025 21:07
@rubiin rubiin merged commit ab18093 into validatorjs:master Mar 27, 2025
10 checks passed
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.

isMobilePhone does not validate Cyprus mobile phone numbers correctly
3 participants