fix(isMobilePhone): improve `el-CY` locale by rezk2ll · Pull Request #2514 · validatorjs/validator.js

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@rezk2ll

Copy link Copy Markdown

Contributor

@rezk2ll rezk2ll commented

Jan 7, 2025

edited

Loading

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@rubiin rubiin rubiin approved these changes

@WikiRik WikiRik WikiRik approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

isMobilePhone does not validate Cyprus mobile phone numbers correctly

3 participants

@rezk2ll @rubiin @WikiRik