Loading core/misc/ajax.js +1 −1 Original line number Diff line number Diff line Loading @@ -619,7 +619,7 @@ // Ensure that we have a valid URL by adding ? when no query parameter is // yet available, otherwise append using &. if (ajax.options.url.indexOf('?') === -1) { if (!ajax.options.url.includes('?')) { ajax.options.url += '?'; } else { ajax.options.url += '&'; Loading core/misc/autocomplete.js +1 −4 Original line number Diff line number Diff line Loading @@ -79,10 +79,7 @@ const term = autocomplete.extractLastTerm(event.target.value); // Abort search if the first character is in firstCharacterBlacklist. if ( term.length > 0 && options.firstCharacterBlacklist.indexOf(term[0]) !== -1 ) { if (term.length > 0 && options.firstCharacterBlacklist.includes(term[0])) { return false; } // Only search when the term is at least the minimum length. Loading core/misc/progress.js +1 −1 Original line number Diff line number Diff line Loading @@ -125,7 +125,7 @@ // When doing a post request, you need non-null data. Otherwise a // HTTP 411 or HTTP 406 (with Apache mod_security) error may result. let uri = this.uri; if (uri.indexOf('?') === -1) { if (!uri.includes('?')) { uri += '?'; } else { uri += '&'; Loading core/modules/contextual/js/contextual.js +1 −1 Original line number Diff line number Diff line Loading @@ -104,7 +104,7 @@ )}`; $contextual.find('.contextual-links a').each(function () { const url = this.getAttribute('href'); const glue = url.indexOf('?') === -1 ? '?' : '&'; const glue = url.includes('?') ? '&' : '?'; this.setAttribute('href', url + glue + destination); }); Loading core/modules/editor/js/editor.admin.js +1 −1 Original line number Diff line number Diff line Loading @@ -240,7 +240,7 @@ } // The simple case: no wildcard in property value. if (propertyValue.indexOf('*') === -1) { if (!propertyValue.includes('*')) { if ( universe.hasOwnProperty(tag) && universe[tag].hasOwnProperty(key) Loading Loading
core/misc/ajax.js +1 −1 Original line number Diff line number Diff line Loading @@ -619,7 +619,7 @@ // Ensure that we have a valid URL by adding ? when no query parameter is // yet available, otherwise append using &. if (ajax.options.url.indexOf('?') === -1) { if (!ajax.options.url.includes('?')) { ajax.options.url += '?'; } else { ajax.options.url += '&'; Loading
core/misc/autocomplete.js +1 −4 Original line number Diff line number Diff line Loading @@ -79,10 +79,7 @@ const term = autocomplete.extractLastTerm(event.target.value); // Abort search if the first character is in firstCharacterBlacklist. if ( term.length > 0 && options.firstCharacterBlacklist.indexOf(term[0]) !== -1 ) { if (term.length > 0 && options.firstCharacterBlacklist.includes(term[0])) { return false; } // Only search when the term is at least the minimum length. Loading
core/misc/progress.js +1 −1 Original line number Diff line number Diff line Loading @@ -125,7 +125,7 @@ // When doing a post request, you need non-null data. Otherwise a // HTTP 411 or HTTP 406 (with Apache mod_security) error may result. let uri = this.uri; if (uri.indexOf('?') === -1) { if (!uri.includes('?')) { uri += '?'; } else { uri += '&'; Loading
core/modules/contextual/js/contextual.js +1 −1 Original line number Diff line number Diff line Loading @@ -104,7 +104,7 @@ )}`; $contextual.find('.contextual-links a').each(function () { const url = this.getAttribute('href'); const glue = url.indexOf('?') === -1 ? '?' : '&'; const glue = url.includes('?') ? '&' : '?'; this.setAttribute('href', url + glue + destination); }); Loading
core/modules/editor/js/editor.admin.js +1 −1 Original line number Diff line number Diff line Loading @@ -240,7 +240,7 @@ } // The simple case: no wildcard in property value. if (propertyValue.indexOf('*') === -1) { if (!propertyValue.includes('*')) { if ( universe.hasOwnProperty(tag) && universe[tag].hasOwnProperty(key) Loading