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

Adds ability to use absolute file paths on Windows. Fixes #137 #138

Merged

Conversation

mustafaoral
Copy link
Contributor

#137 explains the issues when using absolute file paths on Windows. With these changes, such usage is now possible.

I have also renamed isFullUrl to isRemoteUrl. I thought the name was misleading because the intent and the name seem to be different: the intent is to find out whether the value of constructor parameter src, passed to the method as url, points to a remote resource or not, as evidenced by the return value being assigned to a property named isRemoteUrl, but the method name suggests that this method indicates whether a URL is a "full" one (is there a half URL?). As this is not part of the public API of this package, however, it's less of a concern and I'm happy to revert that part if there is objection to the rename.

@zachleat zachleat merged commit 2e3a02e into 11ty:master Feb 23, 2022
@zachleat
Copy link
Member

This is a great PR—thank you!

@zachleat
Copy link
Member

Side note: I think I will probably alias Util.isFullUrl to isRemoteUrl for now

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.

None yet

2 participants