Browse Source

Merge pull request #1212 in VISUAL/fineui from ~WINDY/fineui:master to master

* commit '3f243cdc41caac02bbdf790b7ab5135e4d3754a5':
  无JIRA任务 更新
es6
windy 5 years ago
parent
commit
16a4eb1deb
  1. 2
      src/core/platform/web/jquery/fn.js

2
src/core/platform/web/jquery/fn.js vendored

@ -98,7 +98,7 @@ if (BI.jQuery) {
}
// BI-56945 场景: 对'啊a'标红, a为keyword, 此时tidx为1, pidx为0, 此时使用tidx显然'啊'就无法标红了
if (tidx >= 0 && pidx > tidx) {
if (tidx >= 0 && (pidx > tidx || pidx === -1)) {
// 标红的text未encode
this.append(BI.htmlEncode(textLeft.substr(0, tidx)));
this.append(BI.$("<span>").addClass("bi-keyword-red-mark")

Loading…
Cancel
Save