Dash-Industry-Forum / DASH-IF-Conformance

This repository provides the source code for MPEG-DASH/DASH-IF Conformance Software/Validator. It has been extended according to further standards, such as CMAF, DVB-DASH, HbbTV, and CTA WAVE.
https://conformance.dashif.org/
Other
66 stars 27 forks source link

fix: use URL instatiation to validate url string #664

Closed cadubentzen closed 1 year ago

cadubentzen commented 1 year ago

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.