Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 177e13c

Browse filesBrowse files
tniessentargos
authored andcommitted
doc: note that path.normalize deviates from POSIX
PR-URL: #51513 Refs: #51345 Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent a04aa36 commit 177e13c
Copy full SHA for 177e13c

File tree

Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/path.md‎

Copy file name to clipboardExpand all lines: doc/api/path.md
+8Lines changed: 8 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,14 @@ instance of the platform-specific path segment separator (`/` on POSIX and
361361
If the `path` is a zero-length string, `'.'` is returned, representing the
362362
current working directory.
363363

364+
On POSIX, the types of normalization applied by this function do not strictly
365+
adhere to the POSIX specification. For example, this function will replace two
366+
leading forward slashes with a single slash as if it was a regular absolute
367+
path, whereas a few POSIX systems assign special meaning to paths beginning with
368+
exactly two forward slashes. Similarly, other substitutions performed by this
369+
function, such as removing `..` segments, may change how the underlying system
370+
resolves the path.
371+
364372
For example, on POSIX:
365373

366374
```js

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.