Skip to content

Commit

Permalink
Emoji search on messageBox is behaving like the emojiPicker's search (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
vinade authored and rodrigok committed Nov 1, 2018
1 parent 7993fc1 commit bdfb91a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ const getEmojis = function(collection, filter) {
return [];
}

const regExp = new RegExp(`^${ RegExp.escape(key) }`, 'i');
const regExp = new RegExp(RegExp.escape(filter), 'i');
const recents = RocketChat.EmojiPicker.getRecent().map((item) => `:${ item }:`);
return Object.keys(collection).map((_id) => {
const data = collection[key];
Expand Down

0 comments on commit bdfb91a

Please sign in to comment.