about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/util
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-04-06 17:13:26 +0200
committerGitHub <noreply@github.com>2022-04-06 17:13:26 +0200
commit00c9363f07081e0149533023992fba47dd905384 (patch)
tree1f53d6804f4a4b81e51729f988cd2e76d0058bab /app/javascript/flavours/glitch/util
parentf0c0787789abfa574ce4e5486d9343c46fa79855 (diff)
parent9b95077885c4a7c03e9f4124f81cd39e2c6cbf26 (diff)
Merge pull request #1733 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/javascript/flavours/glitch/util')
-rw-r--r--app/javascript/flavours/glitch/util/emoji/emoji_mart_search_light.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/util/emoji/emoji_mart_search_light.js b/app/javascript/flavours/glitch/util/emoji/emoji_mart_search_light.js
index e4519a13e..70694ab6d 100644
--- a/app/javascript/flavours/glitch/util/emoji/emoji_mart_search_light.js
+++ b/app/javascript/flavours/glitch/util/emoji/emoji_mart_search_light.js
@@ -124,7 +124,7 @@ function search(value, { emojisToShowFilter, maxResults, include, exclude, custo
           for (let id in aPool) {
             let emoji = aPool[id],
               { search } = emoji,
-              sub = value.substr(0, length),
+              sub = value.slice(0, length),
               subIndex = search.indexOf(sub);
 
             if (subIndex !== -1) {