From a72de6c6a5bc7eedb71402846792344778e55713 Mon Sep 17 00:00:00 2001 From: misaki214 <1694419465@qq.com> Date: Sat, 22 May 2021 10:59:54 +0800 Subject: [PATCH] Fix file path on Windows --- apps/els_core/src/els_uri.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/els_core/src/els_uri.erl b/apps/els_core/src/els_uri.erl index 27244d803..8f6fbd74a 100644 --- a/apps/els_core/src/els_uri.erl +++ b/apps/els_core/src/els_uri.erl @@ -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>>;