builtin: fix for utf8_str_visible_length for CJK Unified Ideographs Extension G (#9739)

pull/9697/head^2
penguindark 2021-04-15 08:20:53 +02:00 committed by GitHub
parent 9d6caa1d5d
commit 4ecc5001b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ pub fn utf8_str_visible_length(s string) int {
if (r >= 0x0f9f8880 && r <= 0xf09f8a8f)
|| (r >= 0xf09f8c80 && r <= 0xf09f9c90)
|| (r >= 0xf09fa490 && r <= 0xf09fa7af)
|| (r >= 0xff0a08080 && r <= 0xf180807f) {
|| (r >= 0xf0a08080 && r <= 0xf180807f) {
l++
}
}