Fix a bug from refactoring

This commit is contained in:
Robin Malley 2023-07-06 00:42:33 +00:00
parent 3d06a48939
commit e4f8f0914f
1 changed files with 2 additions and 2 deletions

View File

@ -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