-
Notifications
You must be signed in to change notification settings - Fork 25
malformed URLs when they are parsed from properties #618
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
Comments
@nionis Good find, this is definitely undesirable... we didn't think about creative encodings including casing! |
@nionis I was noodling on this, I'm thinking about either storing both version of the value and having a separate way of retrieving values, or making value casing configurable in the TiledResource constructor. Thoughts? |
If I had to choose, I would store the original value, and allow the user to pass match function. |
@nionis Awesome suggestion, I've pushed up a PR with that and some other tweaks, needs testing before merging but in theory fixes this |
Steps to Reproduce
Set any youtube video URL as property in tiled.
Expected Result
Once parsed by the plugin, the URL should be the same (including casing)
Actual Result
URL is in small caps, making the video unplayable
Environment
tiled plugin v0.30.2
Current Workaround
N/A
Theory
My guess the issue stems from the code that makes case insensitive search possible.
excalibur-tiled/src/resource/filter-util.ts
Lines 20 to 30 in 15d72c4
The text was updated successfully, but these errors were encountered: