Skip to content

Commit

Permalink
Maya Parameters : Fix broken regex
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkaufman committed Feb 16, 2022
1 parent 06d9eab commit 9a8db57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/IECoreMaya/DAGPathParameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def __getattr__( self, attrName ):
"""
@staticmethod
def pathValidator():
return re.compile( r"^(|?[^\t\n\r\f\v|]+)+\|?$" )
return re.compile( r"^(\|?[^\t\n\r\f\v|]+)+\|?$" )

"""
Returns (True, "") only if the value is a correct DAG path string and also checks that the DAG node exists or doesn't exist
Expand Down
2 changes: 1 addition & 1 deletion python/IECoreMaya/NodeParameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def __getattr__( self, attrName ):
"""
@staticmethod
def pathValidator():
return re.compile( r"^(|?[^\t\n\r\f\v|]+)+\|?$" )
return re.compile( r"^(\|?[^\t\n\r\f\v|]+)+\|?$" )

"""
Returns (True, "") only if the value is a correct dependency nodestring and also checks that the node exists or doesn't exist
Expand Down

0 comments on commit 9a8db57

Please sign in to comment.