We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c3506b commit 50e82faCopy full SHA for 50e82fa
lib/path/index.js
@@ -33,7 +33,7 @@ path.normalize = function normalize(path) {
33
prefix = parts.shift() + "/";
34
for (var i = 0; i < parts.length;) {
35
if (parts[i] === "..") {
36
- if (i > 0)
+ if (i > 0 && parts[i - 1] !== "..")
37
parts.splice(--i, 2);
38
else if (absolute)
39
parts.splice(i, 1);
lib/path/package.json
@@ -1,7 +1,7 @@
1
{
2
"name": "@protobufjs/path",
3
"description": "A minimal path module to resolve Unix, Windows and URL paths alike.",
4
- "version": "1.1.1",
+ "version": "1.1.2",
5
"author": "Daniel Wirtz <dcode+protobufjs@dcode.io>",
6
"repository": {
7
"type": "git",
0 commit comments