Fixed util.lua, again

This commit is contained in:
Jakob Ovrum 2010-07-03 13:27:47 +09:00
parent 8b9adbd8e0
commit ca3ae42726
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ function parse(line)
end
local trailToken = line:find(":", lineStart)
local lineStop = -1
local lineStop = line:len()
local trailing
if trailToken then
trailing = line:sub(trailToken + 1)
@ -32,7 +32,7 @@ function parse(line)
while true do
local _, stop, param = line:find("(%S+)", pos)
if stop >= lineStop then
if not param or stop > lineStop then
break
end