Browse Source

Pull request #215866: BI-119441 公式输入字符页面崩溃

Merge in DEC/fineui from ~WINDY/fineui:release/11.0 to release/11.0

* commit '96e4fb0cef52b53f70d75be06c693d5177fa10f6':
  BI-119441 公式输入字符页面崩溃
research/test
windy-许昊 2 years ago
parent
commit
4b6370326c
  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