Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial patch would break non-file URIs if they did work. Instead we can simply check if a file exists at the filepath. If it does, then it's clearly a filepath and not a URI. Otherwise, we can try it as a URI, and if it is syntactically correct and absolute with a scheme present, we can use it as-is.
- Loading branch information
1 parent
391d1c7
commit 284ab76
Showing
2 changed files
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters