Update regex to allow numbers in config variables

This commit is contained in:
David Pooley 2023-07-02 02:24:16 +01:00
commit 0bf36743b6

View file

@ -537,7 +537,7 @@ class Config(object):
Returns something from the ini unless it is a real property
of the configuration object or is not all caps.
"""
if not re.match(r'[A-Z_]+$', name):
if not re.match(r'[A-Z0-9_]+$', name):
return super(Config, self).__getattr__(name)
else:
return self.check_setting(name)