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

Activity

  1. targos commented on Jul 6, 2017

    @targos
    Member

    The behavior changed between v5.6.0 and v5.7.0

    Edit: this is likely due to 4dae8ca

  2. targos commented on Jul 6, 2017

    @targos
    Member

    Possible fix: #14107

  3. ghost added a commit that references this issue on Aug 30, 2017
  4. ghost added a commit that references this issue on Aug 30, 2017
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

    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