Difference between revisions of "Module:TableTools"
check type of prefix and suffix
>Mr. Stradivarius (add type checking) |
>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 '' |