Merge "Modify project URL regex"
This commit is contained in:
commit
cc0cbd0149
@ -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 = {
|
||||||
|
Loading…
Reference in New Issue
Block a user