aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-02-05 18:56:15 -0800
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-02-05 18:56:15 -0800
commit51abe58a1a8873205f0474cde851cfab00951cb3 (patch)
tree135c184438890c3c4c7ef4a4a7e7d3f8e2305bd0
parent7f1415c7ae1e2ef5ce1801e9851dd71cd086e769 (diff)
downloadbun-51abe58a1a8873205f0474cde851cfab00951cb3.tar.gz
bun-51abe58a1a8873205f0474cde851cfab00951cb3.tar.zst
bun-51abe58a1a8873205f0474cde851cfab00951cb3.zip
()
-rw-r--r--src/resolver/resolve_path.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolver/resolve_path.zig b/src/resolver/resolve_path.zig
index b000da260..d497ec1ec 100644
--- a/src/resolver/resolve_path.zig
+++ b/src/resolver/resolve_path.zig
@@ -368,7 +368,7 @@ pub fn normalizeStringGeneric(path: []const u8, buf: []u8, comptime allow_above_
continue;
}
- if (r + 2 == n or (n > r + 2 and isSeparator(path[r + 2])) and isDotDot(path[r..][0..2])) {
+ if ((r + 2 == n or (n > r + 2 and isSeparator(path[r + 2]))) and isDotDot(path[r..][0..2])) {
r += 2;
// .. element: remove to last separator
if (buf_i > dotdot) {