-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Update greek alphabet #1238
Conversation
There was a problem hiding this 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: [ | |||
'αβγδεζηθικλμνξοπρςστυφχψω', |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 ✅
There was a problem hiding this 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: [ | |||
'αβγδεζηθικλμνξοπρςστυφχψω', |
There was a problem hiding this comment.
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 ✅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
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