Skip to content

Commit

Permalink
Merge pull request #1017 from misaki214/windows
Browse files Browse the repository at this point in the history
Fix file path on Windows
  • Loading branch information
robertoaloi authored May 26, 2021
2 parents b4e2fd4 + a72de6c commit 28694b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/els_core/src/els_uri.erl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ path(Uri) ->
{true, <<>>} ->
% Windows drive letter, have to strip the initial slash
re:replace(
Path, "^/([a-zA-Z]:)(.*)", "\\1\\2", [{return, binary}]
Path, "^/([a-zA-Z])(:|%3A)(.*)", "\\1:\\3", [{return, binary}]
);
{true, _} ->
<<"//", Host/binary, Path/binary>>;
Expand Down

0 comments on commit 28694b7

Please sign in to comment.