loader.js: Don't use the regex DotAll modifier, it's ES2018+ only

i.e. not supported by Microsoft Edge
This commit is contained in:
Johannes Meyer 2021-02-22 15:07:55 +01:00
parent 9dae3bdf88
commit 5c5e83a700
1 changed files with 1 additions and 1 deletions

View File

@ -790,7 +790,7 @@
}
$.each(req.responseText.split(contentSeparator), function (idx, el) {
var match = el.match(/for=(Behavior:)?(\S+)\s+(.*)/ms);
var match = el.match(/for=(Behavior:)?(\S+)\s+([^]*)/m);
if (!! match) {
if (match[1]) {
var behavior = _this.icinga.behaviors[match[2].toLowerCase()];