Merge "Modify project URL regex"

This commit is contained in:
Logan Hanks 2017-08-01 16:40:33 +00:00 committed by Gerrit Code Review
commit cc0cbd0149

View File

@ -342,7 +342,7 @@
// /c/<project>/+/<changeNum>/[<basePatchNum>..][<patchNum>]/[path]. // /c/<project>/+/<changeNum>/[<basePatchNum>..][<patchNum>]/[path].
// TODO(kaspern): Migrate completely to project based URLs, with backwards // TODO(kaspern): Migrate completely to project based URLs, with backwards
// compatibility for change-only. // compatibility for change-only.
page(/^\/c\/([^\/]+)\/\+\/(\d+)(\/?((\d+)(\.\.(\d+))?(\/(.+))?))?\/?$/, page(/^\/c\/(.+)\/\+\/(\d+)(\/?((\d+)(\.\.(\d+))?(\/(.+))?))?\/?$/,
ctx => { ctx => {
// Parameter order is based on the regex group number matched. // Parameter order is based on the regex group number matched.
const params = { const params = {