Skip to content

Update greek alphabet#1238

Merged
profnandaa merged 3 commits into
validatorjs:masterfrom
Girgetto:update-greek-alphabet
Jan 28, 2020
Merged

Update greek alphabet#1238
profnandaa merged 3 commits into
validatorjs:masterfrom
Girgetto:update-greek-alphabet

Conversation

@Girgetto

Copy link
Copy Markdown
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

@profnandaa profnandaa left a comment

Copy link
Copy Markdown
Member

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?

Comment thread test/validators.js
validator: 'isAlpha',
args: ['el-GR'],
valid: [
'αβγδεζηθικλμνξοπρςστυφχψω',

Copy link
Copy Markdown
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
Copy Markdown
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 left a comment

Copy link
Copy Markdown
Contributor Author

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

Comment thread test/validators.js
validator: 'isAlpha',
args: ['el-GR'],
valid: [
'αβγδεζηθικλμνξοπρςστυφχψω',

Copy link
Copy Markdown
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

@profnandaa profnandaa left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

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