diff options
Diffstat (limited to 'samples/lpr.lua')
| -rw-r--r-- | samples/lpr.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/lpr.lua b/samples/lpr.lua index 2b059b1..3d5e2f8 100644 --- a/samples/lpr.lua +++ b/samples/lpr.lua | |||
| @@ -29,7 +29,7 @@ end | |||
| 29 | do | 29 | do |
| 30 | local opt = {} | 30 | local opt = {} |
| 31 | local pat = "[%s%c%p]*([%w]*)=([\"]?[%w%s_!@#$%%^&*()<>:;]+[\"]\?\.?)" | 31 | local pat = "[%s%c%p]*([%w]*)=([\"]?[%w%s_!@#$%%^&*()<>:;]+[\"]\?\.?)" |
| 32 | for i = 2, table.getn(arg), 1 do | 32 | for i = 2, #arg, 1 do |
| 33 | string.gsub(arg[i], pat, function(name, value) opt[name] = value end) | 33 | string.gsub(arg[i], pat, function(name, value) opt[name] = value end) |
| 34 | end | 34 | end |
| 35 | if not arg[2] then | 35 | if not arg[2] then |
