diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2021-07-09 14:33:21 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2021-07-09 14:33:21 +0200 |
commit | 8c05227efa476b56fb01b3be84687d5ebc49014a (patch) | |
tree | bfeb0e177e81148192b54bfa17d4276fecd7f240 /muninplot/data.py | |
parent | cd58f5b103cd8aed67ea26ef6b10128aacc6dd0c (diff) |
Support digits in rrdtool variable names
Diffstat (limited to 'muninplot/data.py')
-rw-r--r-- | muninplot/data.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |