From 4ecc5001b9d86efaeb82d77fe5e65475bc751e1e Mon Sep 17 00:00:00 2001 From: penguindark <57967770+penguindark@users.noreply.github.com> Date: Thu, 15 Apr 2021 08:20:53 +0200 Subject: [PATCH] builtin: fix for utf8_str_visible_length for CJK Unified Ideographs Extension G (#9739) --- vlib/builtin/utf8.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/builtin/utf8.v b/vlib/builtin/utf8.v index 76f561f2f2..d2eca88cf2 100644 --- a/vlib/builtin/utf8.v +++ b/vlib/builtin/utf8.v @@ -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++ } }