1
0
mirror of https://github.com/tateisu/SubwayTooter synced 2025-01-11 08:53:54 +01:00
tateisu 2018-04-09 03:05:18 +09:00
parent 2c0282a48d
commit 87d5d78de5

View File

@ -171,8 +171,12 @@ object EmojiDecoder {
openNormalText() openNormalText()
val length = Character.charCount(s.codePointAt(i)) val length = Character.charCount(s.codePointAt(i))
if(length == 1) { if(length == 1) {
sb.append(s[i]) val c = s[i++]
++ i sb.append(when(c) {
// https://github.com/tateisu/SubwayTooter/issues/69
'\u00AD' -> '-'
else -> c
})
} else { } else {
sb.append(s.substring(i, i + length)) sb.append(s.substring(i, i + length))
i += length i += length