Skip to content

doc: isabsolute() windows examples use wrong path separator #6520

Description

@rtpHarry

Doc incorrectly uses forward slashes for path examples on Windows platform:

https://nodejs.org/docs/latest/api/path.html#path_path_isabsolute_path

path.isAbsolute('//server')  // true
path.isAbsolute('C:/foo/..') // true

Should be

path.isAbsolute('\\server')  // true
path.isAbsolute('C:\foo\..') // true

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to Node.js documentation.pathIssues and PRs related to the path subsystem.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions