964
edits
mNo edit summary |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 142: | Line 142: | ||
-- specialTitleCase('amulet Of Fishing') = 'Amulet of Fishing' | -- specialTitleCase('amulet Of Fishing') = 'Amulet of Fishing' | ||
function p.specialTitleCase(sentence) | function p.specialTitleCase(sentence) | ||
if sentence == nil then return nil end | if sentence == nil or sentence:match("^%s*$") ~= nil then return nil end | ||
-- List of words that are excluded from TitleCase | -- List of words that are excluded from TitleCase |
edits