diff --git a/src/miniflask/state.py b/src/miniflask/state.py index 8020287..379958a 100644 --- a/src/miniflask/state.py +++ b/src/miniflask/state.py @@ -383,7 +383,7 @@ def __str__(self): class state_node: - _lambda_str_regex = re.compile(r"^{?\s*\"\w*\"\s*:\s*lambda\s*\w*:.*}?") + _lambda_str_regex = re.compile(r"^{?\s*(\"[^\"]*\")|('[^']*')\s*:\s*lambda\s*\w*:.*}?") local_arguments = [] depends_on = [] depends_alternatives = []