From 3448d7fc00cdd1134c1772fdadb52eb5697af33c Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Mon, 2 Dec 2019 12:40:19 +0800 Subject: [PATCH] =?UTF-8?q?BI-56649=20fix:=20=E5=8E=9F=E6=96=87=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E7=9A=84=E5=B0=91=E6=94=B9=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/platform/web/jquery/fn.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/platform/web/jquery/fn.js b/src/core/platform/web/jquery/fn.js index e6ddce32c..9d94719c6 100644 --- a/src/core/platform/web/jquery/fn.js +++ b/src/core/platform/web/jquery/fn.js @@ -106,7 +106,10 @@ if (BI.jQuery) { textLeft = textLeft.substr(tidx + keyword.length); if (py != null) { - py = py.substr(tidx + keyword.length); + // 每一组拼音都应该前进,而不是只是当前的 + py = BI.map(py.split("\u200b"), function (idx, ps) { + return ps.slice(tidx + keyword.length); + }).join("\u200b"); } } else if (pidx != null && pidx >= 0) { // BI-56386 这边两个pid / text.length是为了防止截取的首字符串不是完整的,但光这样做还不够,即时错位了,也不能说明就不符合条件