Fix slashes on Windows.#2423
Merged
SEWeiTung merged 1 commit intonodejs:masterfrom Sep 3, 2019
XhmikosR:master-xmr-slashes
Merged
Fix slashes on Windows.#2423SEWeiTung merged 1 commit intonodejs:masterfrom XhmikosR:master-xmr-slashes
SEWeiTung merged 1 commit intonodejs:masterfrom
XhmikosR:master-xmr-slashes
Conversation
Contributor
|
Is there anyone with a windows box who can verify? |
Contributor
Author
|
Here's the output without this patch (trimmed) to get an idea: My main concern is that I don't know where this bug comes from. Is it from metalsmith itself? |
XhmikosR
commented
Aug 23, 2019
There's a bug somewhere which results in backslashes in paths when building on Windows.
Contributor
|
@XhmikosR, Have you submitted |
Contributor
Author
|
@MaledongGit: what do you mean? If you mean the vnu addition, that's in #2469, which isn't ready yet. |
Contributor
|
@XhmikosR :Well……I fetched the latest version of codes and I cannot use |
Contributor
Author
|
If you mean the slashes PR, that's ready. The vnu PR is not ready,I list
the TODO there.
…On Tue, Sep 3, 2019, 14:38 Maledong ***@***.***> wrote:
@XhmikosR <https://github.com/XhmikosR> :Well……I fetched the latest
version of codes and I cannot use test:html, I want to know whether this
is already added in the package.json or not. Otherwises I'll merge it into
the repository ;)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2423?email_source=notifications&email_token=AACVLNKGPOQNQHIEXVSUNMDQHZEDPA5CNFSM4IMOPPWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5X5BMQ#issuecomment-527421618>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACVLNIUGJKJJYGDQLZBHKDQHZEDPANCNFSM4IMOPPWA>
.
|
XhmikosR
commented
Sep 3, 2019
| 'use strict' | ||
|
|
||
| module.exports = function (str) { | ||
| return process.platform === 'win32' && str.replace(/\\/g, '/') |
Contributor
Author
There was a problem hiding this comment.
The process.platform check seems inconsistent now since in summary.js I don't do the same.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There's a bug somewhere which results in backslashes in paths when building on Windows.
Maybe the name should be normalize slashes or something? I just wanted to keep it short here.
Fixes #2396