Skip to content

Conversation

@XhmikosR
Copy link
Contributor

@XhmikosR XhmikosR commented Sep 4, 2019

Sorry for the regression, my initial patch didn't include the process check, but due to a review comment I added it, which I shouldn't have.

/CC @Trott @MaledongGit please try on nix and merge ASAP.

Fixes #2494


module.exports = function (str) {
return process.platform === 'win32' && str.replace(/\\/g, '/')
return str.replace(/\\/g, '/')
Copy link
Contributor Author

@XhmikosR XhmikosR Sep 4, 2019

Choose a reason for hiding this comment

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

Alternatively, if you still want the check I can change it to a ternary.

That being said, this way is consistent with one more case we have to replace the slashes where we don't check for process.

@Trott
Copy link
Member

Trott commented Sep 4, 2019

I'm going to go ahead and merge this right away. If it causes problems, it should be easy enough to back out.

@Trott Trott merged commit 7d79ce4 into nodejs:master Sep 4, 2019
@XhmikosR XhmikosR deleted the master-xmr-slash branch September 4, 2019 13:31
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

Successfully merging this pull request may close these issues.

False canonical link on your pages

2 participants