Skip to content

path.normalize does not work correctly in case of a folder that contains .. as part of its name #14105

Description

@itai-codefresh
  • 8.0.0:
  • mac:
  • Subsystem:

When using path.normalize with a folder that has '..' at the end of it, it fails to continue parsing the input correctly.

path.normalize('bar/foo../../')
current output: bar/foo../../
desired output: bar

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues and PRs for confirmed bugs.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions