Skip to content

Commit

Permalink
emojiの始端と終端の“:”を区別し、終端ではサジェストを開始しない
Browse files Browse the repository at this point in the history
  • Loading branch information
kat-atat committed Aug 20, 2021
1 parent 5f9c7e3 commit 4b2c215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/scripts/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export class Autocomplete {

const isMention = mentionIndex != -1;
const isHashtag = hashtagIndex != -1;
const isEmoji = emojiIndex != -1;
const isEmoji = emojiIndex != -1 && text.split(/:[a-z0-9_+\-]+:/).pop().includes(":");

let opened = false;

Expand Down

0 comments on commit 4b2c215

Please sign in to comment.