-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
fix: better handle absolute paths #10255
Conversation
For maintainers only:
|
Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon. |
schemas/ajv.absolutePath.js
Outdated
// \\\\ - Windows network absolute path | ||
// \/ - Unix-like OS absolute path | ||
const isCorrectAbsolutePath = | ||
expected === /^(?:[A-Za-z]:(\\|\/)|\\\\|\/)/.test(data); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
expected === /^(?:[A-Za-z]:(\\|\/)|\\\\|\/)/.test(data); | |
expected === /^(?:[A-Za-z]:\\|\\\\|\/)/.test(data); |
correct windows paths must use \
and not /
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sokra Windows supports c:/foo/bar
https://nodejs.org/api/path.html#path_path_isabsolute_path
@jeffin143 Thanks for your update. I labeled the Pull Request so reviewers will review it again. @sokra Please review the new changes. |
Thasnk |
What kind of change does this PR introduce?
fix : #10247
Did you add tests for your changes?
NA
Does this PR introduce a breaking change?
No
What needs to be documented once your changes are merged?
May be that webpack-4 can now handle Absolute network paths, Not sure