0001-misc-allow-_-as-first-variable-character-for-legacy-.patch
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 |
- |