Fix a bug from refactoring
This commit is contained in:
parent
3d06a48939
commit
e4f8f0914f
|
@ -171,8 +171,8 @@ function util.parse_tags(str)
|
|||
assert(tag, "Found a nil or false tag in:" .. str)
|
||||
local tag_fmt = tag:match("%s*(.*)%s*"):lower():gsub("^.",string.upper)
|
||||
assert(tag_fmt, "After processing tag:" .. tag .. " it was falsey.")
|
||||
if string.len(tag_capitalized) > 0 then
|
||||
table.insert(tags, tag_capitalized)
|
||||
if string.len(tag_fmt) > 0 then
|
||||
table.insert(tags, tag_fmt)
|
||||
end
|
||||
end
|
||||
return tags
|
||||
|
|
Loading…
Reference in New Issue