0
0
Fork 0

Preserve hashtag casing in web UI hashtag history (#8394)

Fix #8241
This commit is contained in:
Eugen Rochko 2018-08-23 21:21:15 +02:00 committed by GitHub
parent 248df68c36
commit f9b23a5d62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -131,7 +131,7 @@ const updateSuggestionTags = (state, token) => {
return state.merge({
suggestions: state.get('tagHistory')
.filter(tag => tag.startsWith(prefix))
.filter(tag => tag.toLowerCase().startsWith(prefix.toLowerCase()))
.slice(0, 4)
.map(tag => '#' + tag),
suggestion_token: token,