Skip to content

Commit

Permalink
Merge pull request #2 from jamesrobinsonvfx/pdg_attribs
Browse files Browse the repository at this point in the history
Update regex to accept @ style pdg attribs
  • Loading branch information
jamesrobinsonvfx authored Jan 22, 2022
2 parents f5825ef + b52ea59 commit 3ee94d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion houdini/scripts/python/ftrimify.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def ftrimify(parm):
"""
if not isinstance(parm.parmTemplate(), hou.StringParmTemplate):
return
pattern = r"((?<!ftrim\()chs*\(.*?\))"
pattern = r"((?<!ftrim\()(chs*\(.*?\)|@[^`]*))"
repl = r"ftrim(\1)"
raw = parm.rawValue()
# Don't do anything if no match found
Expand Down

0 comments on commit 3ee94d4

Please # to comment.