[MM-36481] Fix emoji regex to support thumbsup (#17846)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
ec8aaec5ce
Коммит
f8fc5190ee
@@ -81,7 +81,7 @@ func GetCustomStatus(message string) *model.CustomStatus {
|
||||
Text: message,
|
||||
}
|
||||
|
||||
firstEmojiLocations := model.ALL_EMOJI_PATTERN.FindIndex([]byte(message))
|
||||
firstEmojiLocations := model.EMOJI_PATTERN.FindIndex([]byte(message))
|
||||
if len(firstEmojiLocations) > 0 && firstEmojiLocations[0] == 0 {
|
||||
// emoji found at starting index
|
||||
customStatus.Emoji = message[firstEmojiLocations[0]+1 : firstEmojiLocations[1]-1]
|
||||
|
||||
Ссылка в новой задаче
Block a user