mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-11-16 02:08:21 +01:00
Merge pull request #37 from davidm/unstable
lpr.lua: fix invalid string escape sequence \?
This commit is contained in:
commit
ca48baf495
@ -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