Skip to content

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

@rtpHarry

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.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