aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/fs/win32.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/fs/win32.lua b/src/luarocks/fs/win32.lua
index d419ea23..98daf13f 100644
--- a/src/luarocks/fs/win32.lua
+++ b/src/luarocks/fs/win32.lua
@@ -15,7 +15,7 @@ local dir = require("luarocks.dir")
15function Q(arg) 15function Q(arg)
16 assert(type(arg) == "string") 16 assert(type(arg) == "string")
17 -- Quote DIR for Windows 17 -- Quote DIR for Windows
18 if arg:match("^[\.a-zA-Z]?:?[\\/]") then 18 if arg:match("^[%.a-zA-Z]?:?[\\/]") then
19 return '"' .. arg:gsub("/", "\\"):gsub('"', '\\"') .. '"' 19 return '"' .. arg:gsub("/", "\\"):gsub('"', '\\"') .. '"'
20 end 20 end
21 -- URLs and anything else 21 -- URLs and anything else