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

path.relative ignore backslash #35

Open
antaalt opened this issue Jul 21, 2024 · 0 comments
Open

path.relative ignore backslash #35

antaalt opened this issue Jul 21, 2024 · 0 comments

Comments

@antaalt
Copy link

antaalt commented Jul 21, 2024

On windows, path uses backslash instead of forward slash, it will fail to resolve the relative path if given a path with backslash. A simple fix could be to fix the string passed by user with something such as .replace(/\\/g, "/")

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

No branches or pull requests

1 participant