MM-55267 Add ability for server-side Markdown code to understand emojis (#25332)

* MM-55267 Add ability for server-side Markdown code to understand emojis

* Remove unused regex
Этот коммит содержится в:
Harrison Healey
2023-11-13 14:38:05 -05:00
коммит произвёл GitHub
родитель 448d442a0b
Коммит 9397970644
5 изменённых файлов: 277 добавлений и 1 удалений

Просмотреть файл

@@ -55,6 +55,15 @@ func isAlphanumericByte(c byte) bool {
return isAlphanumeric(rune(c))
}
// isWord returns true if c matches the \w regexp character class
func isWord(c rune) bool {
return isAlphanumeric(c) || c == '_'
}
func isWordByte(c byte) bool {
return isWord(rune(c))
}
func nextNonWhitespace(markdown string, position int) int {
for offset, c := range []byte(markdown[position:]) {
if !isWhitespaceByte(c) {