]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Removed extra pipes from regex.
authorPatOnTheBack <51241310+PatOnTheBack@users.noreply.github.com>
Wed, 26 Jun 2019 00:16:24 +0000 (20:16 -0400)
committerThibaut Girka <thib@sitedethib.com>
Wed, 26 Jun 2019 21:19:26 +0000 (23:19 +0200)
Port 5b20284f6f7ebb2514d81fb27fcaa40f8edf14ff to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
app/javascript/flavours/glitch/util/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) {