Update path matching regex to support dots
This commit is contained in:
parent
e699739b23
commit
c5fa12329c
3 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@ logger = logging.getLogger(__name__)
|
|||
route_data = None
|
||||
|
||||
class RepoPathConverter(BaseConverter):
|
||||
regex = '[a-zA-Z0-9_-]+/[a-zA-Z0-9_-]+'
|
||||
regex = '[\.a-zA-Z0-9_\-]+/[\.a-zA-Z0-9_\-]+'
|
||||
weight = 200
|
||||
|
||||
app.url_map.converters['repopath'] = RepoPathConverter
|
||||
|
|
Reference in a new issue