From: PatOnTheBack <51241310+PatOnTheBack@users.noreply.github.com> Date: Wed, 26 Jun 2019 00:16:24 +0000 (-0400) Subject: Removed extra pipes from regex. (#11181) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=5b20284f6f7ebb2514d81fb27fcaa40f8edf14ff;p=mastodon.git Removed extra pipes from regex. (#11181) --- diff --git a/app/javascript/mastodon/features/emoji/emoji_mart_search_light.js b/app/javascript/mastodon/features/emoji/emoji_mart_search_light.js index 164fdcc0b..e4519a13e 100644 --- a/app/javascript/mastodon/features/emoji/emoji_mart_search_light.js +++ b/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']]; } - let values = value.toLowerCase().split(/[\s|,|\-|_]+/), + let values = value.toLowerCase().split(/[\s|,\-_]+/), allResults = []; if (values.length > 2) {