Skip to content

Commit 19d8446

Browse files
committed
Improved match and guard
1 parent 5a94906 commit 19d8446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/lib/path.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ defmodule Path do
552552
normalize t, acc
553553
end
554554

555-
defp normalize([".."|t], [<<_letter, ?:, relative :: binary>>|_] = acc) when relative == "/" do
555+
defp normalize([".."|t], [<<_letter, ?:, ?/>>|_] = acc) when _letter in ?a..?z do
556556
normalize t, acc
557557
end
558558

0 commit comments

Comments
 (0)