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

HTTP links are not validated at creation #7

Closed
samuelroland opened this issue Mar 25, 2021 · 1 comment
Closed

HTTP links are not validated at creation #7

samuelroland opened this issue Mar 25, 2021 · 1 comment
Assignees
Labels
bug Something isn't working validation Concern the data validation

Comments

@samuelroland
Copy link
Owner

The extension should check with a Regex that the link entered is valid and not "blabla hey" or another invalid link.

@samuelroland
Copy link
Owner Author

samuelroland commented Mar 28, 2021

Actually I didn't read very well the Regex and I introduce a bug. Link like rts.ch/home are not valid... (Only domain name is accepted). I will fix it soon.

LINK_REGEX:  "^(((https?:\\/\\/)|(www\\.)|())((([A-Z\\d_-]+\\.)+)([A-Z\\d_-]+)|(localhost))((:\\d{2,4})?))$"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working validation Concern the data validation
Projects
None yet
Development

No branches or pull requests

1 participant