File tree 2 files changed +1
-5
lines changed
2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -1122,9 +1122,6 @@ const CONST = {
1122
1122
// eslint-disable-next-line no-misleading-character-class
1123
1123
/ [ \n \s , / ? " { } [ \] ( ) & ^ % $ # < > ! * \p{ Extended_Pictographic} \u200d \u{1f1e6} - \u{1f1ff} \u{1f3fb} - \u{1f3ff} \u{e0020} - \u{e007f} \u20E3 \uFE0F ] | [ # * 0 - 9 ] \uFE0F ? \u20E3 / gu,
1124
1124
1125
- // Define the regular expression pattern to match a string starting with a colon and ending with a space or newline character
1126
- EMOJI_REPLACER : / ^ : [ ^ \n \r ] + ?(? = $ | \s ) / ,
1127
-
1128
1125
// Define the regular expression pattern to match a string starting with an at sign and ending with a space or newline character
1129
1126
MENTION_REPLACER :
1130
1127
// eslint-disable-next-line no-misleading-character-class
@@ -1302,7 +1299,6 @@ const CONST = {
1302
1299
1303
1300
USA_COUNTRY_NAME ,
1304
1301
SPACE_LENGTH : 1 ,
1305
- SPACE : 1 ,
1306
1302
1307
1303
ALL_COUNTRIES : {
1308
1304
AF : 'Afghanistan' ,
Original file line number Diff line number Diff line change @@ -627,7 +627,7 @@ class ReportActionCompose extends React.Component {
627
627
const commentBeforeColon = this . state . value . slice ( 0 , this . state . colonIndex ) ;
628
628
const emojiObject = this . state . suggestedEmojis [ highlightedEmojiIndex ] ;
629
629
const emojiCode = emojiObject . types && emojiObject . types [ this . props . preferredSkinTone ] ? emojiObject . types [ this . props . preferredSkinTone ] : emojiObject . code ;
630
- const commentAfterColonWithEmojiNameRemoved = this . state . value . slice ( this . state . selection . end ) . replace ( CONST . REGEX . EMOJI_REPLACER , CONST . SPACE ) ;
630
+ const commentAfterColonWithEmojiNameRemoved = this . state . value . slice ( this . state . selection . end ) ;
631
631
632
632
this . updateComment ( `${ commentBeforeColon } ${ emojiCode } ${ this . trimLeadingSpace ( commentAfterColonWithEmojiNameRemoved ) } ` , true ) ;
633
633
// In some Android phones keyboard, the text to search for the emoji is not cleared
You can’t perform that action at this time.
0 commit comments