Skip to content
Snippets Groups Projects
Commit 3d8d941d authored by normandy's avatar normandy
Browse files

Make autocomplete case insensitive

parent 748e01d3
No related branches found
No related tags found
1 merge request!225Make autocomplete case insensitive
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment