-
-
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
add(isURL): added validate_length option #1397
Conversation
fix for issue: #1396
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, thanks for your contrib! 🎉
@tux-tn -- could you have a second look on this?
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.
@tomgrossman Thank you for your contribution 🎉
lib
folder is generated by babel, you need to make your changes inside src/lib
folder. In addition, you'll have to update existing tests (there is a test case where the URL is longer than 2083) and add new tests for your added option
@tux-tn fixed. for some reason I can't click on the "re-request review" button, it doesn't work... |
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 🎉
Opened related issue: #1412 |
fix for issue: #1396
Today the
isURL
function validate hard-coded for max 2083 string length. This is not part of the RFC and should be able to skip this validation.Checklist