aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancis Dinh <normandy@firemail.cc>2018-04-11 04:23:13 -0400
committerFrancis Dinh <normandy@firemail.cc>2018-04-11 04:23:13 -0400
commit3d8d941d89c436a354865e18766da39ebefd66e5 (patch)
tree6a4542e9902ad0ec9f3287c659fc8e3bc44b1681
parent748e01d3e966f94aad7c28478363d5b84e4e9977 (diff)
Make autocomplete case insensitive
-rw-r--r--src/components/post_status_form/post_status_form.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js
index 999aa732..c8a6802a 100644
--- a/src/components/post_status_form/post_status_form.js
+++ b/src/components/post_status_form/post_status_form.js
@@ -53,7 +53,8 @@ const PostStatusForm = {
candidates () {
const firstchar = this.textAtCaret.charAt(0)
if (firstchar === '@') {
- const matchedUsers = filter(this.users, (user) => (String(user.name + user.screen_name)).match(this.textAtCaret.slice(1)))
+ const matchedUsers = filter(this.users, (user) => (String(user.name + user.screen_name)).toUpperCase()
+ .match(this.textAtCaret.slice(1).toUpperCase()))
if (matchedUsers.length <= 0) {
return false
}