1,043
edits
(add comment with repository url) |
(permit spaces everywhere (purely cosmetic)) |
||
Line 28: | Line 28: | ||
local diceTable = {} | local diceTable = {} | ||
for term in diceString:gmatch'[+-]?[^+-]+' do | for term in diceString:gsub('%s', ''):gmatch'[+-]?[^+-]+' do | ||
local quantity, size = term:match'^([+-]?%d+)d(%d+)$' | local quantity, size = term:match'^([+-]?%d+)d(%d+)$' | ||