Skip to content

Commit 5a94906

Browse files
committed
Add normalize dispatch for Windows volume letters
1 parent 0f0a91f commit 5a94906

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/elixir/lib/path.ex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,10 @@ defmodule Path do
552552
normalize t, acc
553553
end
554554

555+
defp normalize([".."|t], [<<_letter, ?:, relative :: binary>>|_] = acc) when relative == "/" do
556+
normalize t, acc
557+
end
558+
555559
defp normalize([".."|t], [_|acc]) do
556560
normalize t, acc
557561
end

0 commit comments

Comments
 (0)