PolyGerrit: Fix going to /c/<change>/patch-num>/ with a slash

Bug: Issue 6827
Change-Id: I92504ecc46e601ac0d8dd99c0e07b7fb3fdb11c2
This commit is contained in:
Paladox none
2017-07-24 20:02:08 +00:00
parent 8c553b9625
commit f48e7b05b9

View File

@@ -139,8 +139,8 @@
}
}
// Matches /c/<changeNum>/[<basePatchNum>..][<patchNum>].
page(/^\/c\/(\d+)\/?(((\d+)(\.\.(\d+))?))?$/, function(ctx) {
// Matches /c/<changeNum>/[<basePatchNum>..][<patchNum>][/].
page(/^\/c\/(\d+)\/?(((\d+)(\.\.(\d+))?))?\/?$/, function(ctx) {
// Parameter order is based on the regex group number matched.
var params = {
changeNum: ctx.params[0],