From c50360787a38ae69eadc5431603a7cc5277f627c Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Fri, 6 Dec 2019 17:23:05 +0800 Subject: [PATCH] revert: fn --- src/core/platform/web/jquery/fn.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/platform/web/jquery/fn.js b/src/core/platform/web/jquery/fn.js index 341719b547..9d94719c6b 100644 --- a/src/core/platform/web/jquery/fn.js +++ b/src/core/platform/web/jquery/fn.js @@ -98,8 +98,7 @@ if (BI.jQuery) { } } - // BI-56945 场景: 对'啊a'标红, a为keyword, 此时tidx为1, pidx为0, 此时使用tidx显然'啊'就无法标红了 - if (tidx >= 0 && BI.isNotNull(pidx) && pidx > tidx) { + if (tidx >= 0) { // 标红的text未encode this.append(BI.htmlEncode(textLeft.substr(0, tidx))); this.append(BI.$("").addClass("bi-keyword-red-mark")