tunapanda / h5p-standalone

Display H5P content without the need for an H5P server
MIT License
272 stars 117 forks source link

feat: allow dev url to match regex (eg :`localhost:8080`) #147

Open remirobichet opened 10 months ago

remirobichet commented 10 months ago

My H5P server is hosted locally and I need to provide the librariesPath option parameter as localhost:8080/library (which is invalid with the current regex and replaced by <CURRENT_PATH>/localhost:8080/library)

remirobichet commented 7 months ago

This is not the point, even with a valid protocol the regex is not working. As I mentionned, the urlPath function contains a non-working regex. This is because the regex does not consider :<PORT> but only URLs with domain name.