Projet

Général

Profil

0001-misc-allow-_-as-first-variable-character-for-legacy-.patch

Frédéric Péters, 14 mai 2021 11:33

Télécharger (905 octets)

Voir les différences:

Subject: [PATCH] misc: allow _ as first variable character (for legacy ezt
 compat) (#53987)

 wcs/qommon/substitution.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
wcs/qommon/substitution.py
163 163
    # custom dictionary that provides automatic fallback to legacy variable
164 164
    # names (namespaced with underscores)
165 165

  
166
    valid_key_regex = re.compile(r'^[a-zA-Z][a-zA-Z0-9_]*$')
166
    valid_key_regex = re.compile(r'^[a-zA-Z_][a-zA-Z0-9_]*$')
167 167

  
168 168
    def get(self, key, default=None):
169 169
        try:
170
-