Skip to content

Commit

Permalink
Merge pull request #28045 from akamefi202/split-suggestion
Browse files Browse the repository at this point in the history
update spilt regex to fix suggestions issue
  • Loading branch information
puneetlath authored Sep 26, 2023
2 parents 973f5b8 + d8af493 commit 74773ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ function SuggestionMention({
}

const leftString = value.substring(0, indexOfLastNonWhitespaceCharAfterTheCursor);
const words = leftString.split(CONST.REGEX.SPECIAL_CHAR_OR_EMOJI);
const words = leftString.split(CONST.REGEX.SPACE_OR_EMOJI);
const lastWord = _.last(words);

let atSignIndex;
Expand Down

0 comments on commit 74773ef

Please sign in to comment.