]> cat aescling's git repositories - mastodon.git/commitdiff
Removed extra pipes from regex. (#11181)
authorPatOnTheBack <51241310+PatOnTheBack@users.noreply.github.com>
Wed, 26 Jun 2019 00:16:24 +0000 (20:16 -0400)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 26 Jun 2019 00:16:24 +0000 (02:16 +0200)
app/javascript/mastodon/features/emoji/emoji_mart_search_light.js

index 164fdcc0b8a69f599a63d9128095f9b9c89c095e..e4519a13e62266127c91e848e7d0c1fb90c83e4d 100644 (file)
@@ -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) {