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: use URL instatiation to validate url string #664

Merged

Conversation

cadubentzen
Copy link
Contributor

@cadubentzen cadubentzen commented May 5, 2023

The current URL validation regex yields some false negatives.
For example, https://test.com/foo-09:04AM/manifest.mpd is marked as invalid despite it being a valid URL. In that case the character : is not included in the regex. But many more valid characters aren't there either.

The simplest approach is to try and instantiate an URL object.

@dsilhavy dsilhavy added this to the v2.2.2 milestone May 5, 2023
@cadubentzen cadubentzen marked this pull request as ready for review May 5, 2023 07:51
@dsilhavy dsilhavy merged commit ae68be8 into Dash-Industry-Forum:development May 30, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants