From 8ae48b7b66d853efff316a85f27f04ad25e850dc Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Mon, 22 Oct 2018 11:10:46 +0200 Subject: [PATCH] Fix regex (PLN-188) --- colorbleed/plugins/global/publish/submit_publish_job.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/colorbleed/plugins/global/publish/submit_publish_job.py b/colorbleed/plugins/global/publish/submit_publish_job.py index e91720a884..ed00cb9343 100644 --- a/colorbleed/plugins/global/publish/submit_publish_job.py +++ b/colorbleed/plugins/global/publish/submit_publish_job.py @@ -155,14 +155,14 @@ class SubmitDependentImageSequenceJobDeadline(pyblish.api.InstancePlugin): # Add in regex for sequence filename # This assumes the output files start with subset name and ends with - # a file extension. + # a file extension. The "ext" key includes the dot with the extension. if "ext" in instance.data: - ext = instance.data["ext"].strip(".") + ext = re.escape(instance.data["ext"]) else: ext = "\.\D+" - regex = "^{subset}.*\d+\.{ext}$".format(subset=re.escape(subset), - ext=re.escape(ext)) + regex = "^{subset}.*\d+{ext}$".format(subset=re.escape(subset), + ext=ext) # Remove deadline submission job, not needed in metadata data.pop("deadlineSubmissionJob")