diff --git a/modules/ROOT/partials/configuration/mentions_fetch.adoc b/modules/ROOT/partials/configuration/mentions_fetch.adoc index 40c59bf62c..4836dc0aef 100644 --- a/modules/ROOT/partials/configuration/mentions_fetch.adoc +++ b/modules/ROOT/partials/configuration/mentions_fetch.adoc @@ -26,9 +26,9 @@ tinymce.init({ usersRequest = fetch('/users'); } usersRequest.then((users) => { - // query.term is the text the user typed after the '@' + // `query.term` is the text the user typed after the '@' users = users.filter((user) => { - return user.name.indexOf(query.term.toLowerCase()) !== -1; + return user.name.toLowerCase().includes(query.term.toLowerCase()); }); users = users.slice(0, 10);