Show toggle CI button for Gerrit URLs with patch set ranges
Toggle CI button isn't present on pages from URL containing patch set ranges. For example: https://review.openstack.org/#/c/259360/2..3 Fixed by updating the regular expression used to enable toggle ci to match URLs containing patch ranges. Change-Id: I74a5516ccc9eb2feee446410caff0ec023769407
This commit is contained in:
parent
78b728f75c
commit
3385fe61c9
@ -14,7 +14,7 @@
|
||||
// under the License.
|
||||
|
||||
// this regex matches the hash part of review pages
|
||||
var hashRegex = /^\#\/c\/([\d]+)(\/(\d+)?\/?)?$/;
|
||||
var hashRegex = /^\#\/c\/([\d]+)((\/\d+)([.][.](\d+))?)?\/?$/;
|
||||
// this regex matches CI comments
|
||||
var ciRegex = /^(.* CI|Jenkins)$/;
|
||||
// this regex matches "Patch set #"
|
||||
|
Loading…
Reference in New Issue
Block a user