Skip to content

Commit

Permalink
Merge pull request #124 from da-h/fix_illegal_annotation_bug
Browse files Browse the repository at this point in the history
state: improve lambda regex, allowing any key name
  • Loading branch information
da-h authored Dec 20, 2022
2 parents dd0c88e + a2b3d30 commit e614386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/miniflask/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit e614386

Please sign in to comment.