Merge pull request #37 from davidm/unstable

lpr.lua: fix invalid string escape sequence \?
This commit is contained in:
Diego Nehab 2013-04-17 20:55:19 -07:00
commit ca48baf495

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