Skip to content

Commit

Permalink
Merge pull request #29794 from eh2077/29081-fix-underscore-not-workin…
Browse files Browse the repository at this point in the history
…g-in-emoji-suggestions

fix underscore not working in emoji suggestions
  • Loading branch information
tgolen authored Oct 17, 2023
2 parents c498ab5 + 824d5e6 commit fe2b2ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1297,7 +1297,7 @@ const CONST = {
SPECIAL_CHAR: /[,/?"{}[\]()&^%;`$=#<>!*]/g,

get SPECIAL_CHAR_OR_EMOJI() {
return new RegExp(`[_~\\n\\s]|${this.SPECIAL_CHAR.source}|${this.EMOJI.source}`, 'gu');
return new RegExp(`[~\\n\\s]|(_\\b(?!$))|${this.SPECIAL_CHAR.source}|${this.EMOJI.source}`, 'gu');
},

get SPACE_OR_EMOJI() {
Expand Down

0 comments on commit fe2b2ce

Please sign in to comment.