Skip to content

Commit

Permalink
[JENKINS-62025] String.includes is not working with IE11 so use indexOf
Browse files Browse the repository at this point in the history
Signed-off-by: olivier lamy <olamy@apache.org>
  • Loading branch information
olamy committed Apr 23, 2020
1 parent ded785d commit fce7fd3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Behaviour.specify("span.pipeline-new-node", 'NewNodeConsoleNote', 0, function(e)
if (label != null) {
var html = e.innerHTML
var suffix = ' (' + label.escapeHTML() + ')';
if (!html.includes(suffix)) {
if (html.indexOf(suffix)<0) {
e.innerHTML = e.innerHTML.replace(/.+/, '$&' + suffix) // insert before EOL
}
}
Expand Down

0 comments on commit fce7fd3

Please sign in to comment.