lpr.lua: fix invalid string escape sequence \?

Not valid in 5.2 and luajit.
This commit is contained in:
David Manura 2013-04-17 23:35:56 -04:00
parent 238b217c4f
commit 817d47df42

View File

@ -28,7 +28,7 @@ end
do
local opt = {}
local pat = "[%s%c%p]*([%w]*)=([\"]?[%w%s_!@#$%%^&*()<>:;]+[\"]\?\.?)"
local pat = "[%s%c%p]*([%w]*)=([\"]?[%w%s_!@#$%%^&*()<>:;]+[\"]?.?)"
for i = 2, #arg, 1 do
string.gsub(arg[i], pat, function(name, value) opt[name] = value end)
end