Removed extra pipes from regex. (#11181)

master
PatOnTheBack 6 years ago committed by Eugen Rochko
parent 07508b2045
commit 5b20284f6f
  1. 2
      app/javascript/mastodon/features/emoji/emoji_mart_search_light.js

@ -74,7 +74,7 @@ function search(value, { emojisToShowFilter, maxResults, include, exclude, custo
return [emojisList['-1']]; return [emojisList['-1']];
} }
let values = value.toLowerCase().split(/[\s|,|\-|_]+/), let values = value.toLowerCase().split(/[\s|,\-_]+/),
allResults = []; allResults = [];
if (values.length > 2) { if (values.length > 2) {

Loading…
Cancel
Save