mirror of
https://github.com/tateisu/SubwayTooter
synced 2025-01-11 08:53:54 +01:00
This commit is contained in:
parent
2c0282a48d
commit
87d5d78de5
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user