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

absolute option replaces \ in filename to / #379

Closed
fisker opened this issue Feb 11, 2023 · 1 comment
Closed

absolute option replaces \ in filename to / #379

fisker opened this issue Feb 11, 2023 · 1 comment
Milestone

Comments

@fisker
Copy link

fisker commented Feb 11, 2023

Environment

  • OS Version: Linux
  • Node.js Version: 18

Actual behavior

fastGlob('test-a@(\\\\)/test.js')
// -> test-a\/test.js
fastGlob('test-a@(\\\\)/test.js', {absolute: true})
// -> /absolute/path/to/test-a//test.js

Expected behavior

should be /absolute/path/to/test-a\/test.js

Steps to reproduce

Code sample

Caused by

filepath = utils.path.unixify(filepath);
?

@mrmlnc
Copy link
Owner

mrmlnc commented Aug 4, 2023

Will be included in the 4.0.0 release (#371).

Now, when the absolute option is enabled, the path is returned in the OS style.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants