1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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

This commit is contained in:
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

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++
}
}