Skip to content

Commit 65809a5

Browse files
author
José Valim
committed
Merge pull request #2416 from chyndman/win-volume-path-normalize
Add normalize dispatch for Windows volume letters
2 parents d53a315 + 19d8446 commit 65809a5

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, ?:, ?/>>|_] = acc) when _letter in ?a..?z 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)