mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 05:59:21 +03:00
-1…*.indexOf() to native .includes()
This commit is contained in:
parent
eb15c6e45f
commit
961fa305c9
8 changed files with 19 additions and 19 deletions
2
dev/External/ko.js
vendored
2
dev/External/ko.js
vendored
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue