misc: allow _ as first variable character (for legacy ezt compat) (#53987)
This commit is contained in:
parent
7255de9d3e
commit
0806a631fd
|
@ -163,7 +163,7 @@ class CompatibilityNamesDict(dict):
|
||||||
# custom dictionary that provides automatic fallback to legacy variable
|
# custom dictionary that provides automatic fallback to legacy variable
|
||||||
# names (namespaced with underscores)
|
# names (namespaced with underscores)
|
||||||
|
|
||||||
valid_key_regex = re.compile(r'^[a-zA-Z][a-zA-Z0-9_]*$')
|
valid_key_regex = re.compile(r'^[a-zA-Z_][a-zA-Z0-9_]*$')
|
||||||
|
|
||||||
def get(self, key, default=None):
|
def get(self, key, default=None):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue