Fix regular expression: Repository name can not start with .-_

This commit is contained in:
Cédric Bonhomme 2019-11-01 19:42:46 +01:00 committed by Drew DeVault
parent 732329c04e
commit 8983bccf90
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ from srht.flagtype import FlagType
from srht.validation import Validation
from todosrht.types import TicketAccess, TicketStatus, TicketResolution
name_re = re.compile(r"^([A-Za-z._-][A-Za-z._-]*?)+$")
name_re = re.compile(r"^([a-zA-Z][a-zA-Z0-9._-]*?)+$")
class Tracker(Base):
__tablename__ = 'tracker'