From 68424f4755c5e22ac85d24a39c1079462b352f1b Mon Sep 17 00:00:00 2001 From: tiglog Date: Mon, 23 Oct 2023 11:04:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A6=82=E6=9E=9C=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E4=B8=AD=E6=96=87=E7=BF=BB=E8=AF=91=E5=B0=B1=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E8=8B=B1=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helper/unicode_helper.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/helper/unicode_helper.go b/helper/unicode_helper.go index 6170f59..317bb43 100644 --- a/helper/unicode_helper.go +++ b/helper/unicode_helper.go @@ -2348,6 +2348,9 @@ type UnicodeHelper struct { func (uh *UnicodeHelper) GetRange(code int) string { for _, bl := range uh.blocks { if code >= bl.Start && code <= bl.End { + if bl.Zh == "" { + return bl.En + } return bl.Zh } }