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.resolve will add prefix / in windows #18

Open
zhixzhan opened this issue Nov 27, 2020 · 0 comments
Open

path.resolve will add prefix / in windows #18

zhixzhan opened this issue Nov 27, 2020 · 0 comments

Comments

@zhixzhan
Copy link

zhixzhan commented Nov 27, 2020

In windows 10 edge browser, all resolve result will prefix /
e.g 1

path.resolve('', 'C:/<path>') 

will get

/C:/<path>

it suppose to get

C:/<path>

e.g 2

path.resolve('C:/<path>', 'a/b/c') 

will get

/C:/<path>/a/b/c

it suppose to get

C:/<path>/a/b/c
@zhixzhan zhixzhan changed the title path.resolve bug in windows browser path.resolve will add prefix / in windows Nov 27, 2020
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