From 0bd493f1ba0749517ac8e217ac3f5c810ea0bb00 Mon Sep 17 00:00:00 2001 From: Mohamed Akram Date: Thu, 30 Dec 2021 14:19:53 +0400 Subject: [PATCH] Allow empty default/error value in substitution --- podman_compose.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/podman_compose.py b/podman_compose.py index 25e69a8..c4dfa8a 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -179,8 +179,8 @@ var_re = re.compile(r""" (?:{ (?P[_a-zA-Z][_a-zA-Z0-9]*) (?:(?P:)?(?: - (?:-(?P[^}]+)) | - (?:\?(?P[^}]+)) + (?:-(?P[^}]*)) | + (?:\?(?P[^}]*)) ))? }) )