Module:MOS gamut: Difference between revisions
Using the pipe character directly has a few issues in the visual editor, so an alternative symbol is advised |
mNo edit summary |
||
| Line 128: | Line 128: | ||
local parsed = {} | local parsed = {} | ||
for entry in string.gmatch(step_ratio_unparsed, '([^ | 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 | ||