Skip to content

Remove non-ASCII limitation#20

Merged
sindresorhus merged 5 commits intosindresorhus:mainfrom
birjj:patch-1
Sep 27, 2022
Merged

Remove non-ASCII limitation#20
sindresorhus merged 5 commits intosindresorhus:mainfrom
birjj:patch-1

Conversation

@birjj
Copy link
Copy Markdown
Contributor

@birjj birjj commented Sep 26, 2022

Closes #19 (see that issue for more information)

I have been unable to find documentation for the non-ASCII limitation, and anecdotal testing has shown forward slashes to be supported in non-ASCII paths:

Screenshot of terminal showing Node.js reading file with non-ASCII path with both forward and backward slashes as seperator

This limitation has further caused issues in projects that rely on this, e.g. facebook/docusaurus#8124, gatsbyjs/gatsby#19600, and UI5/cli#469, amongst others.

Fixes sindresorhus#19
I have been unable to find documentation for the non-ASCII limitation,
and anecdotal testing have shown forward slashes to be supported in
non-ASCII paths. See sindresorhus#19 for more information
@sindresorhus sindresorhus merged commit b83ed2a into sindresorhus:main Sep 27, 2022
@sindresorhus
Copy link
Copy Markdown
Owner

Makes sense. I cannot find any references to it anymore either.

birjj added a commit to birjj/docusaurus that referenced this pull request Sep 27, 2022
See sindresorhus/slash#19 for discussion on limitation in the originating package
This updates the integrated function to match sindresorhus/slash after sindresorhus/slash#20
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.

Support non-ASCII characters in paths

2 participants