镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

path.posix.relative returns different results for *nix and Windows versions of node #13683

Description

@usergenic
  • Version: 8.1.1
  • Platform: Windows Server
  • Subsystem: path.js

This code returns different values depending on whether run on *nix or windows:

path.posix.relative('a/b/c', '../../x');
'../../../..../x' // on windows
'../../../../../x' // on *nix

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

    confirmed-bugIssues and PRs for confirmed bugs.pathIssues and PRs related to the path subsystem.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions