Support non-alphanumeric default values.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2016-10-06 17:04:19 -04:00
commit 2bce81508e
2 changed files with 2 additions and 1 deletions

View file

@ -72,7 +72,7 @@ def recursive_interpolate(obj, interpolator):
class TemplateWithDefaults(Template):
idpattern = r'[_a-z][_a-z0-9]*(?::?-[_a-z0-9]+)?'
idpattern = r'[_a-z][_a-z0-9]*(?::?-[^}]+)?'
# Modified from python2.7/string.py
def substitute(self, mapping):