feat(isURL): add `allow_fragments` and `allow_query_components` by cowboy-bebug ยท Pull Request #1721 ยท validatorjs/validator.js
Hi there ๐
Contributing a couple of options for isURL to make it more flexible:
allow_fragmentstrueby default- if set to
false, isURL returns false if#is present in url
allow_query_componentstrueby default- if set to
false, isURL returns false if?or&is present in url
Checklist
- PR contains only changes related; no stray files, etc.
- README updated (where applicable)
- Tests written (where applicable)
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work @cowboy-bebug and congrats for your first contribution here ๐ !
LGTM ๐
Thanks @tux-tn!
When could I expect this to be published? I'd like to consume it as soon as we can ๐
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contrib! ๐
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters