Module:ET: Difference between revisions
m Bugfix for 0ed<...> |
m Parsing improvements |
||
Line 22: | Line 22: | ||
local equave_n, equave_m = rat.as_pair(equave) | local equave_n, equave_m = rat.as_pair(equave) | ||
local equave_ratio = rat.as_ratio(equave) | local equave_ratio = rat.as_ratio(equave) | ||
equave_ratio = equave_ratio:lower() | |||
suffix = size .. 'ed' | suffix = size .. 'ed' | ||
if common_suffix[equave_ratio] then | if common_suffix[equave_ratio] then | ||
Line 40: | Line 41: | ||
return nil | return nil | ||
end | end | ||
suffix = suffix:lower() | |||
size = tonumber(size) | size = tonumber(size) | ||
equave = common_ratio[equave] or rat.parse(equave) | equave = common_ratio[equave] or rat.parse(equave) |