diff options
| author | Shpuld Shpludson <shp@cock.li> | 2018-04-11 08:34:24 +0000 |
|---|---|---|
| committer | Shpuld Shpludson <shp@cock.li> | 2018-04-11 08:34:24 +0000 |
| commit | 82ee24ec31ad89e82c6002fd0dc3593f47adfdb4 (patch) | |
| tree | 8151d94cb48d79b240cfee4ec6aae073562aeecf /src | |
| parent | 748e01d3e966f94aad7c28478363d5b84e4e9977 (diff) | |
| parent | 52d72599eee5e866d60b2c4d946f4d6aaa1ea376 (diff) | |
Merge branch 'fix/autocomplete-case-insensitive' into 'develop'
Make autocomplete case insensitive
Closes #73
See merge request pleroma/pleroma-fe!225
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/post_status_form/post_status_form.js | 3 |
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..c63c308c 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 } |
