Content deleted Content added
ignore commas in showValues parsing if they're escaped with a backslash (this fixes D3 format strings containing commas being incorrectly parsed) |
syntax error; update version history |
||
Line 3:
--
-- Version History (_PLEASE UPDATE when modifying anything_):
-- 2019-08-17 Allow commas in showValues by escaping them with a backslash
-- 2018-10-13 Fix browser color-inversion issues via #54595d per [[mw:Template:Graph:PageViews]]
-- 2018-08-26 Use user-defined order for stacked charts
Line 895 ⟶ 896:
if showValues then
if type(showValues) == "string" then -- deserialize as table
local keyValues = mw.text.split(showValues, "%s*(?<!\\),%s*")
showValues = {}
for _, kv in ipairs(keyValues) do
|