Download:
child 205:c1ff7500c753
parent 203:5fb816a7a437
204:b923c5aa0856
Anton Shestakov <av6@dwimlabs.net>, Thu, 11 Aug 2016 23:21:04 +0800
viewer: simplify check regex

1 файлов изменено, 1 вставок(+), 1 удалений(-) [+]
viewer.py file | annotate | diff | comparison | revisions
--- a/viewer.py Thu Aug 11 20:49:37 2016 +0800
+++ b/viewer.py Thu Aug 11 23:21:04 2016 +0800
@@ -25,7 +25,7 @@
handlers = [
(r'/', IndexHandler),
(project_re, ProjectHandler),
- (project_re + r'/([\d]+|latest)(?:/(raw))?', CheckHandler),
+ (project_re + r'/(\d+|latest)(?:/(raw))?', CheckHandler),
(project_re + r'/status\.svg', StatusHandler),
(r'.*', ErrorHandler, {'status_code': 404})
]