Skip to content

Commit

Permalink
fix: replace missing inputs with ""
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydesl committed Nov 21, 2023
1 parent 8df7d91 commit 450fa20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions micadoparser/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def replace_strings(value, test_result_fn, resolve_result_fn, *args):
item = match.group(1) or match.group(2) or match.group(3)
if test_result_fn(item):
replacement = resolve_result_fn(item, *args)
if not replacement:
continue
if not replacement:
replacement = ""
modified_value = modified_value.replace(match.group(0), replacement)
return modified_value

Expand Down

0 comments on commit 450fa20

Please sign in to comment.