Skip to content
Closed
Prev Previous commit
Next Next commit
docs: explain why path.posix.normalize does not replace windows slashes
Fix formatting (long line)

Fixes: #12298
  • Loading branch information
sjlehn committed Apr 27, 2017
commit 91bb7fa7af8b8b6afdab7fe3227a7ff176847d89
4 changes: 2 additions & 2 deletions doc/api/path.md
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,8 @@ The `path.posix` property provides access to POSIX specific implementations
of the `path` methods.

### path.posix.normalize(path)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this note belongs in the normalize() documentation, not as a different subsection in path.posix.

Copy link
Contributor Author

@sjlehn sjlehn Apr 27, 2017

Choose a reason for hiding this comment

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

Should I still give it a heading or would it be better as just a note after "For Example, on POSIX" at 327

Copy link
Contributor

Choose a reason for hiding this comment

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

I wouldn't give it a heading.

The `path.posix.normalize()` method will not attempt to convert / (Windows) to \ (POSIX), as / is not recognized by
POSIX as a valid directory separator.
The `path.posix.normalize()` method will not attempt to convert / (Windows) to
\ (POSIX), as / is not recognized by POSIX as a valid directory separator.
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't / a valid directory separator on POSIX??

Copy link
Contributor Author

Choose a reason for hiding this comment

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

duh...should have realized I had that backwards

Copy link
Member

Choose a reason for hiding this comment

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

I think the comment may have these backwards. The windows separator \ is not recognized by POSIX as a valid separator.


For example:
```js
Expand Down