diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2011-11-08 00:50:03 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2011-11-08 00:50:03 -0200 |
commit | 9b3ec18536270f5498c082e27cda786bde20d494 (patch) | |
tree | 44349453147bcb7cfcc507ce4ca43ca5ee9d19be /src | |
parent | 9534e4c10af1b0a4f605b616b9d1ba8399d36ce0 (diff) | |
download | luarocks-9b3ec18536270f5498c082e27cda786bde20d494.tar.gz luarocks-9b3ec18536270f5498c082e27cda786bde20d494.tar.bz2 luarocks-9b3ec18536270f5498c082e27cda786bde20d494.zip |
remove invalid escape, which is ignored in plain Lua but apparently annoys LuaJIT
Diffstat (limited to 'src')
-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 |