path-browserify icon indicating copy to clipboard operation
path-browserify copied to clipboard

path.relative ignore backslash

Open antaalt opened this issue 1 year ago • 0 comments

On windows, path uses backslash instead of forward slash, it will fail to resolve the relative path if given a path with backslash. A simple fix could be to fix the string passed by user with something such as .replace(/\\/g, "/")

antaalt avatar Jul 21 '24 11:07 antaalt