Removed replace function as regex formating has been fixed properly

This commit is contained in:
aardschok 2018-02-20 17:07:36 +01:00
parent be8fa78195
commit abb032cbd5

View file

@ -127,11 +127,8 @@ class CollectFileSequences(pyblish.api.ContextPlugin):
root = path
self.log.info("Collecting: {}".format(root))
regex = data.get("regex")
if regex:
# ensure regex string is proper, json adds double slashes
regex = regex.replace("\\_", "_")
self.log.info("Decoded regex to: {}".format(regex))
collections = collect(root=root,