Skip to content
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

Update greek alphabet #1238

Merged
merged 3 commits into from
Jan 28, 2020
Merged

Conversation

Girgetto
Copy link
Contributor

This PR refers to #1237

Old regex: /^[Α-ω]+$/i

New regex: /^[Α-ώ]+$/i

This expanded range now also includes άέήίΰ (char codes 940 through 944) and ϊϋόύώ (codes 970 through 974)

Resource:
https://stackoverflow.com/questions/23327302/javascript-regex-to-remove-special-characters-but-also-keep-greek-characters

@Girgetto Girgetto requested a review from profnandaa January 27, 2020 13:55
Copy link
Member

@profnandaa profnandaa left a comment

Choose a reason for hiding this comment

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

Thanks for your contrib 🎉LGTM, could you just address one comment below and we land this?

@@ -1279,8 +1279,8 @@ describe('Validators', () => {
validator: 'isAlpha',
args: ['el-GR'],
valid: [
'αβγδεζηθικλμνξοπρςστυφχψω',
Copy link
Member

Choose a reason for hiding this comment

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

For the tests, could you please add more tests other than overwriting the previous ones?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added tests instead of overwrite ✅

Copy link
Contributor Author

@Girgetto Girgetto left a comment

Choose a reason for hiding this comment

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

Added tests changes after the last review

@@ -1279,8 +1279,8 @@ describe('Validators', () => {
validator: 'isAlpha',
args: ['el-GR'],
valid: [
'αβγδεζηθικλμνξοπρςστυφχψω',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added tests instead of overwrite ✅

@Girgetto Girgetto requested a review from profnandaa January 27, 2020 19:02
Copy link
Member

@profnandaa profnandaa left a comment

Choose a reason for hiding this comment

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

LGTM.

@profnandaa profnandaa merged commit 1c9efc5 into validatorjs:master Jan 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants