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

Make basePath option support file:// URLs and ignore trailing slash #30

Merged
merged 2 commits into from
Sep 27, 2022

Conversation

silverwind
Copy link
Contributor

@silverwind silverwind commented Sep 25, 2022

  • Make the basePath option transform file URLs into relative paths as well.
  • Make the basePath option ignore trailing slash.
  • Refactor tests to use template strings where possible.

@silverwind silverwind force-pushed the fileurl-basepath branch 2 times, most recently from bc233df to 9e5a49e Compare September 25, 2022 11:00
- Make the `basePath` option transform file URLs into relative paths as well.
- Make the `basePath` option ignore trailing slash.
- Refactor tests to use template strings where possible.
@silverwind silverwind changed the title Make basePath option support file:// URLs Make basePath option support file:// URLs and ignore trailing slash Sep 25, 2022
@sindresorhus sindresorhus merged commit 03ca45e into sindresorhus:main Sep 27, 2022
@silverwind silverwind deleted the fileurl-basepath branch September 27, 2022 10:38
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.

2 participants