Module:Utils: Difference between revisions
Bug fixing |
Bug fixing |
||
Line 8: | Line 8: | ||
result = def_value | result = def_value | ||
if type(input) == 'string' then | if type(input) == 'string' then | ||
local denominator | local denominator = 1 | ||
input, denominator = input:match("^%s*(.-)/(.-)%s*$") | input, denominator = input:match("^%s*(.-)/(.-)%s*$") | ||
if string.len(input) > 0 then | if string.len(input) > 0 then |