Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ietf/submit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,15 @@ def validate_submission_name(name):
if '.' in name:
msg += " Did you include a filename extension in the name by mistake?"
return msg
return None

components = name.split('-')
if '' in components:
return "Name contains adjacent dashes or the name ends with a dash."
if len(components) < 3:
return "Name has less than three dash-delimited components in the name."

return None

def validate_submission_rev(name, rev):
if not rev:
return 'Revision not found'
Expand Down