Make sure that tests fail properly; ensure that empty string is a valid default

This commit is contained in:
Ben Jackson 2021-02-06 22:07:53 +00:00
commit 7f77842ab8
2 changed files with 13 additions and 5 deletions

View file

@ -460,7 +460,7 @@ VAR_MATCH = re.compile(
{(?P<braceddefault> # or An {id:default} - default param, as
(?P<defname>[_a-z][_a-z0-9]*) # an ID
: # then a colon
(?P<default>(?:\\}|[^}])+) # then anything up to }, or a \}
(?P<default>(?:\\}|[^}])*) # then anything up to }, or a \}
)} | # then a }
(?P<invalid>) # or Something else - invalid
)