You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2019/06/04 15:14:42 UTC
[allura] 06/07: [#8282] Make autocomplete item filtering case
insensitive
This is an automated email from the ASF dual-hosted git repository.
brondsem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git
commit aa8d4c19b8607c9177fcc09c10aff8d8a138421c
Author: Shalitha Suranga <sh...@gmail.com>
AuthorDate: Mon Jun 3 21:34:17 2019 +0530
[#8282] Make autocomplete item filtering case insensitive
---
Allura/allura/lib/widgets/resources/js/usermentions-helper.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Allura/allura/lib/widgets/resources/js/usermentions-helper.js b/Allura/allura/lib/widgets/resources/js/usermentions-helper.js
index 97c3895..f53ee1b 100644
--- a/Allura/allura/lib/widgets/resources/js/usermentions-helper.js
+++ b/Allura/allura/lib/widgets/resources/js/usermentions-helper.js
@@ -47,7 +47,7 @@ CodeMirror.registerHelper('hint', 'alluraUserMentions', function (editor) {
if(curWord) {
// If there is current word set, We can filter out users from the main list and display them
userMentionList.forEach(function(item) {
- if(item.displayText.indexOf(curWord) != -1)
+ if(item.displayText.toLowerCase().indexOf(curWord.toLowerCase()) != -1)
list.push(item);
});
}