Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

referenceFilename extension parameter should be limited #59

Open
genfhk opened this issue Jun 2, 2017 · 1 comment
Open

referenceFilename extension parameter should be limited #59

genfhk opened this issue Jun 2, 2017 · 1 comment

Comments

@genfhk
Copy link
Contributor

genfhk commented Jun 2, 2017

No description provided.

@genfhk genfhk changed the title referenceFilename should be limited to allowed extensions. referenceFilename extension parameter should be limited Jun 2, 2017
@nkrabben
Copy link
Collaborator

Didn't we have a comment chain started on this? Regardless, this is the current regex
^[a-zA-Z\\d\\-\\*_]+\\.[a-zA-Z0-9]{2,3}$
Now that we're in the CMSID only era we could limit it to this
^[a-z]{3}_\\d{6}_v\\d{2}([frspt]\\d{2})*_(em|pm|sc).(mkv|mp4|wav|dv)$
I left the face, regions, stream, part, take portion fairly generic but we could be more exact about ordering.

Another option is that we create subspecies for these based on format types. For example,
audio = ^[a-z]{3}_\\d{6}_v\\d{2}([frspt]\\d{2})*_(em|pm).wav$
video = ^[a-z]{3}_\\d{6}_v\\d{2}([frt]\\d{2})*_(pm|sc).(mkv|mp4|dv)$
film = ^[a-z]{3}_\\d{6}_v\\d{2}([r]\\d{2})*_(pm)_\\d+.dpx$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants