From 3385fe61c9b42a3a4579fd62a6829b7c88b268b1 Mon Sep 17 00:00:00 2001 From: Khai Do Date: Wed, 23 Dec 2015 13:28:37 -0800 Subject: [PATCH] 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 --- modules/openstack_project/files/gerrit/hideci.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openstack_project/files/gerrit/hideci.js b/modules/openstack_project/files/gerrit/hideci.js index d6ce67c1df..b1a017a6cc 100644 --- a/modules/openstack_project/files/gerrit/hideci.js +++ b/modules/openstack_project/files/gerrit/hideci.js @@ -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 #"