Skip to content

Commit

Permalink
Merge pull request lunarmodules#37 from davidm/unstable
Browse files Browse the repository at this point in the history
lpr.lua: fix invalid string escape sequence \?
  • Loading branch information
diegonehab committed Apr 18, 2013
2 parents 238b217 + 817d47d commit ca48baf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/lpr.lua
Expand Up @@ -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
Expand Down

0 comments on commit ca48baf

Please sign in to comment.