-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restrict the start chars SPLIT_PATTERN can match (#47)
- Loading branch information
1 parent
75ddf60
commit 23614a8
Showing
2 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
# Example: /film/shot/renders/[email protected] | ||
# Example: /film/shot/renders/bilbo_bty.1-100@@@@#.exr | ||
# Example: /film/shot/renders/bilbo_bty.1-100%04d.exr | ||
SPLIT_PATTERN = r"([-:,xy\d]*)([{0}]+|%\d+d)".format(''.join(PAD_MAP.keys())) | ||
SPLIT_PATTERN = r"((?:[-\d][-:,xy\d]*)?)([{0}]+|%\d+d)".format(''.join(PAD_MAP.keys())) | ||
SPLIT_RE = re.compile(SPLIT_PATTERN) | ||
|
||
# Regular expression pattern for matching padding against a printf syntax | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters