Module:MOS gamut: Difference between revisions

Ganaram inukshuk (talk | contribs)
Using the pipe character directly has a few issues in the visual editor, so an alternative symbol is advised
Ganaram inukshuk (talk | contribs)
mNo edit summary
Line 128: Line 128:
local parsed = {}
local parsed = {}
for entry in string.gmatch(step_ratio_unparsed, '([^-]+)') do
for entry in string.gmatch(step_ratio_unparsed, '([^,]+)') do
local trimmed = entry:gsub("^%s*(.-)%s*$", "%1")
local trimmed = entry:gsub("^%s*(.-)%s*$", "%1")
table.insert(parsed, trimmed) -- Add to array
table.insert(parsed, trimmed) -- Add to array