fix hideci regex to work on /#/c/XXXXX/YY
There previous regex had a bug which meant that the Toggle CI button and functionality wouldn't trigger when browsing to a change which included the revision number. This updates the regex to match in those conditions. Change-Id: Icc3d580d063c3a64f9d2b7e7d6a46e67afe0c779
This commit is contained in:
parent
bf3bcc827d
commit
5de98f124f
@ -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+)?\/?)?$/;
|
||||
// this regex matches CI comments
|
||||
var ciRegex = /^(.* CI|Jenkins)$/;
|
||||
// this regex matches "Patch set #"
|
||||
|
Loading…
x
Reference in New Issue
Block a user