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

fix: better handle absolute paths #10255

Merged
merged 2 commits into from Jan 15, 2020
Merged

Conversation

jeffin143
Copy link
Contributor

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

@webpack-bot
Copy link
Contributor

For maintainers only:

  • This needs to be documented (issue in webpack/webpack.js.org will be filed when merged)
  • This needs to be backported to webpack 4 (issue will be created when merged)

@webpack-bot
Copy link
Contributor

Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon.

// \\\\ - Windows network absolute path
// \/ - Unix-like OS absolute path
const isCorrectAbsolutePath =
expected === /^(?:[A-Za-z]:(\\|\/)|\\\\|\/)/.test(data);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
expected === /^(?:[A-Za-z]:(\\|\/)|\\\\|\/)/.test(data);
expected === /^(?:[A-Za-z]:\\|\\\\|\/)/.test(data);

correct windows paths must use \ and not /.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made changes

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@webpack-bot
Copy link
Contributor

@jeffin143 Thanks for your update.

I labeled the Pull Request so reviewers will review it again.

@sokra Please review the new changes.

@sokra sokra merged commit 627510d into webpack:webpack-4 Jan 15, 2020
@sokra
Copy link
Member

sokra commented Jan 15, 2020

Thasnk

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

Successfully merging this pull request may close these issues.

None yet

5 participants