Skip to content

Commit fe5942f

Browse files
authored
DOC-2579: Update the example using mentions_fetch to reflect demo changes. (#3514)
* DOC-2579: Update the example using mentions_fetch to reflect demo changes. * DOC-2579: correct syntax errors. * Update modules/ROOT/partials/configuration/mentions_fetch.adoc * Update modules/ROOT/partials/configuration/mentions_fetch.adoc * DOC-2579: copy edits.
1 parent adbf25c commit fe5942f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/ROOT/partials/configuration/mentions_fetch.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ tinymce.init({
2626
usersRequest = fetch('/users');
2727
}
2828
usersRequest.then((users) => {
29-
// query.term is the text the user typed after the '@'
29+
// `query.term` is the text the user typed after the '@'
3030
users = users.filter((user) => {
31-
return user.name.indexOf(query.term.toLowerCase()) !== -1;
31+
return user.name.toLowerCase().includes(query.term.toLowerCase());
3232
});
3333
3434
users = users.slice(0, 10);

0 commit comments

Comments
 (0)