mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-25 03:58:21 +01:00
lpr.lua: fix invalid string escape sequence \?
Not valid in 5.2 and luajit.
This commit is contained in:
parent
238b217c4f
commit
817d47df42
@ -28,7 +28,7 @@ end
|
|||||||
|
|
||||||
do
|
do
|
||||||
local opt = {}
|
local opt = {}
|
||||||
local pat = "[%s%c%p]*([%w]*)=([\"]?[%w%s_!@#$%%^&*()<>:;]+[\"]\?\.?)"
|
local pat = "[%s%c%p]*([%w]*)=([\"]?[%w%s_!@#$%%^&*()<>:;]+[\"]?.?)"
|
||||||
for i = 2, #arg, 1 do
|
for i = 2, #arg, 1 do
|
||||||
string.gsub(arg[i], pat, function(name, value) opt[name] = value end)
|
string.gsub(arg[i], pat, function(name, value) opt[name] = value end)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user