Browse Source

Merge pull request #215958 in DEC/fineui from release/11.0 to feature/x

* commit '4b6370326ce09197339980235051dfe3c79b881e':
  BI-119441 公式输入字符页面崩溃
research/test
superman 2 years ago
parent
commit
12ad778d81
  1. 4
      src/core/utils/chinesePY.js

4
src/core/utils/chinesePY.js

@ -425,6 +425,10 @@
BI._.extend(BI, {
makeFirstPY: function (str, options) {
options = options || {};
// BI-119441 长字段搜索分叉后数量达百万级,这里控制下字段过长的话不进行多音字分叉
if (str.length > 100 && BI.isNull(options.ignoreMulti)) {
options.ignoreMulti = true;
}
if (typeof (str) !== "string") {return "" + str;}
var arrResult = []; // 保存中间结果的数组
for (var i = 0, len = str.length; i < len; i++) {

Loading…
Cancel
Save