We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
mentions_fetch
1 parent adbf25c commit fe5942fCopy full SHA for fe5942f
modules/ROOT/partials/configuration/mentions_fetch.adoc
@@ -26,9 +26,9 @@ tinymce.init({
26
usersRequest = fetch('/users');
27
}
28
usersRequest.then((users) => {
29
- // query.term is the text the user typed after the '@'
+ // `query.term` is the text the user typed after the '@'
30
users = users.filter((user) => {
31
- return user.name.indexOf(query.term.toLowerCase()) !== -1;
+ return user.name.toLowerCase().includes(query.term.toLowerCase());
32
});
33
34
users = users.slice(0, 10);
0 commit comments