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 file uri on windows #498

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

genben
Copy link

@genben genben commented Aug 24, 2020

Fix issue with parsing of file URIs on Windows and URL-encoded characters (%xx) on both Windows and *nix.

On Windows, file URI "file:///c:/dir/file.css" should be converted to "c:/dir/file.css" rather than to "/c:/dir/file.css".

URL-encoded characters should be converted to regular UTF-8 characters, for example, "%20" to " " (space).
So, "file:///c:/Program%20Files/file.css" becomes "c:/Program Files/file.css"

"file:///c:/dir/file.ext" should be converted to "c:/dir/file.ext" rather than "/c:/dir/file.ext"
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.

1 participant