add is_windows feature flag when normalizing path

This commit is contained in:
ljie-PI
2024-10-21 15:08:09 +08:00
parent 9176eabb3b
commit 2b110a6d0f

View File

@@ -80,7 +80,7 @@ function M.path_relative(path, relative_to)
end
local norm_path = path
if has_parentheses_and_brackets(path) then
if M.is_windows and has_parentheses_and_brackets(path) then
norm_path = path:gsub("/", "\\")
end