Skip to content

win32 path.normalize change in behavior #18763

@dougwilson

Description

@dougwilson
  • Version: v8.9.4
  • Platform: Windows 10 64-bit
  • Subsystem: path

So there seems to have been some change in path.normalize for win32 between Node.js 8.4.0 and 8.5.0 that changed how paths are being normalized. There seems to be a behavior difference with some paths that looked like drive-relative paths. Example:

> path.normalize(".\\C:../..")
'.'

Versions 8.4.0 and below used to do this:

> path.normalize(".\\C:../..")
'C:..\\..'

Is this an expected change?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionIssues that look for answers.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions