Module:TableTools: Difference between revisions
check type of prefix and suffix
m>Mr. Stradivarius (add type checking) |
m>Mr. Stradivarius on tour (check type of prefix and suffix) |
||
Line 214: | Line 214: | ||
function p.affixNums(t, prefix, suffix) | function p.affixNums(t, prefix, suffix) | ||
checkType('affixNums', 1, t, 'table') | checkType('affixNums', 1, t, 'table') | ||
checkType('affixNums', 2, prefix, 'string', true) | |||
checkType('affixNums', 3, suffix, 'string', true) | |||
prefix = prefix or '' | prefix = prefix or '' | ||
suffix = suffix or '' | suffix = suffix or '' |