Module:Buildup: Difference between revisionsGive feedback
No edit summary |
TheMilkMan (talk | contribs) Trying to resolve modules that rely on Names being broken now that Silver's Werewolf form has a nil name. |
||
| Line 138: | Line 138: | ||
-- Helper to strip "The " from names just for sorting | -- Helper to strip "The " from names just for sorting | ||
local function clean_sort_name(name) | local function clean_sort_name(name) | ||
if type(name) ~= "string" then | |||
return "" | |||
end | |||
if string.sub(name, 1, 4) == "The " then | if string.sub(name, 1, 4) == "The " then | ||
return string.sub(name, 5) | return string.sub(name, 5) | ||