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

Allow host to be empty string for local file:/// paths #85

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

Conversation

hgs-sellis
Copy link

@hgs-sellis hgs-sellis commented Feb 13, 2025

I needed to make this change for the validator to allow hrefs like the following:

file:///path/to/the%20file.txt

For a local file, the hostname is omitted, but the slash is not (note the third slash). So the hostname is the empty string, not undefined.


Test Suites: 1 passed, 1 total
Tests: 31 passed, 31 total

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