Skip to content

Commit

Permalink
Comment to improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
BigRoy committed Sep 23, 2024
1 parent 018ed0d commit 083fcf7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/ayon_houdini/plugins/load/load_filepath.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ def remove_format_spec(template: str, key: str) -> str:
"""
# Find all {key:foobar} and remove the `:foobar`
# Pattern will be like `({key):[^}]+(})` where we use the captured groups
# to keep those parts in the resulting string
pattern = f"({{{key}):[^}}]+(}})"
return re.sub(pattern, r"\1\2", template)

Expand Down

0 comments on commit 083fcf7

Please sign in to comment.