-1…*.indexOf() to native .includes()

This commit is contained in:
djmaze 2020-07-20 21:39:00 +02:00
parent eb15c6e45f
commit 961fa305c9
8 changed files with 19 additions and 19 deletions

2
dev/External/ko.js vendored
View file

@ -818,7 +818,7 @@ ko.bindingHandlers.emailsTags = {
autoCompleteSource: fAutoCompleteSource,
splitHook: (value) => {
const v = Utils.trim(value);
if (v && -1 < inputDelimiters.indexOf(v.substr(-1))) {
if (v && inputDelimiters.includes(v.substr(-1))) {
return EmailModel.splitEmailLine(value);
}
return null;