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