Revert "fix(#2862): windows path replaces backslashes with forward slashes (#2903)"

This reverts commit 45a93d9979.
This commit is contained in:
ljie-PI
2024-10-19 14:35:00 +08:00
parent 2a268f631d
commit 25d4f14b90
2 changed files with 9 additions and 10 deletions

View File

@@ -279,7 +279,7 @@ function M.escape_special_chars(path)
if path == nil then
return path
end
return M.is_windows and path:gsub("\\", "/") or path
return M.is_windows and path:gsub("%(", "\\("):gsub("%)", "\\)") or path
end
--- Create empty sub-tables if not present