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

fix: improve isurl regex #1032

Merged

Conversation

melloware
Copy link
Collaborator

@melloware melloware commented Nov 10, 2023

Improves on #920 and adds unit tests

Ensures that new scenario and old scenarios are still all working so we don't keep breaking this.

according to Snyk this is the correct way to detect a URL: https://snyk.io/blog/secure-javascript-url-validation/

@melloware melloware added this to the 6.21.0 milestone Nov 10, 2023
@melloware melloware added the bug Something isn't working label Nov 10, 2023
@melloware melloware linked an issue Nov 10, 2023 that may be closed by this pull request
@melloware melloware force-pushed the fix__use_require_tld_instead_of_regex branch 3 times, most recently from 53009e2 to e72b7f9 Compare November 11, 2023 13:09
@melloware
Copy link
Collaborator Author

Can someone review this. The build is currently broken until this fix is implemented.

@melloware melloware force-pushed the fix__use_require_tld_instead_of_regex branch from e72b7f9 to feded76 Compare November 13, 2023 14:08
@melloware melloware force-pushed the fix__use_require_tld_instead_of_regex branch from feded76 to b95397c Compare November 13, 2023 14:54
Copy link
Contributor

@alanpoulain alanpoulain left a comment

Choose a reason for hiding this comment

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

Much better!

@melloware melloware merged commit 30ba2a2 into orval-labs:master Nov 13, 2023
2 checks passed
@melloware melloware deleted the fix__use_require_tld_instead_of_regex branch November 13, 2023 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parse Error: Invalid header value char
4 participants