Skip to content

Commit

Permalink
Update slothy/helper.py
Browse files Browse the repository at this point in the history
Co-authored-by: Hanno Becker <[email protected]>
  • Loading branch information
mkannwischer and hanno-becker authored Dec 20, 2024
1 parent 9d6db3f commit 7ffe367
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions slothy/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,7 @@ def prepare_value(a):
return a

def apply_arg(l, arg, val):
# This function is also called on the values of tags, which may not be strings.
if isinstance(l, str) is False:
return l
l = re.sub(f"\\\\{arg}\\\\\\(\\)", val, l)
Expand Down

0 comments on commit 7ffe367

Please sign in to comment.