From 8c05227efa476b56fb01b3be84687d5ebc49014a Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Fri, 9 Jul 2021 14:33:21 +0200 Subject: Support digits in rrdtool variable names --- muninplot/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'muninplot/data.py') diff --git a/muninplot/data.py b/muninplot/data.py index bef81e1..cd1829b 100644 --- a/muninplot/data.py +++ b/muninplot/data.py @@ -115,7 +115,7 @@ def get_info(): def _cdef_change(cdef, mod): """Replace references in the cdef expression to include min and max.""" - return ','.join(x + mod if re.match('^[a-z_]+$', x) else x for x in cdef.split(',')) + return ','.join(x + mod if re.match('^[a-z_][a-z0-9_]*$', x) else x for x in cdef.split(',')) def _key(value): -- cgit v1.2.3