diff options
-rw-r--r-- | src/luarocks/fs/win32.lua | 2 |
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") | |||
15 | function Q(arg) | 15 | function 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 |