forked from extern/podman-compose
Allow empty default/error value in substitution
This commit is contained in:
parent
481c6d0a41
commit
0bd493f1ba
@ -179,8 +179,8 @@ var_re = re.compile(r"""
|
|||||||
(?:{
|
(?:{
|
||||||
(?P<braced>[_a-zA-Z][_a-zA-Z0-9]*)
|
(?P<braced>[_a-zA-Z][_a-zA-Z0-9]*)
|
||||||
(?:(?P<empty>:)?(?:
|
(?:(?P<empty>:)?(?:
|
||||||
(?:-(?P<default>[^}]+)) |
|
(?:-(?P<default>[^}]*)) |
|
||||||
(?:\?(?P<err>[^}]+))
|
(?:\?(?P<err>[^}]*))
|
||||||
))?
|
))?
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user