Skip to content

feat: add Romanian phone number validation - #18

Open
Aaqibhafeezkhan wants to merge 1 commit into
Robert-GeorgeDev:mainfrom
Aaqibhafeezkhan:feat/romanian-phone-number-validator
Open

Aaqibhafeezkhan wants to merge 1 commit into
Robert-GeorgeDev:mainfrom
Aaqibhafeezkhan:feat/romanian-phone-number-validator

Conversation

@Aaqibhafeezkhan

Copy link
Copy Markdown

Summary

  • Add validatePhoneRo and isValidPhoneRo for Romanian mobile and landline numbers.
  • Accept national, +40, and 0040 prefixes and normalize valid numbers to E.164 format.
  • Return the normalized number in data.normalized and Romanian error messages for invalid input.
  • Add tests for normalization, international prefixes, landlines, and invalid formats.
  • Update public exports, README documentation, and the Unreleased changelog.

Closes #10.

@Aaqibhafeezkhan Aaqibhafeezkhan left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed phone number normalization, supported prefixes, mobile and landline formats, Romanian error messages, and the test cases.

This branch has not been deployed

No deployments
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.

Add a validator for Romanian phone numbers

1 participant