Browse Source

文本超过100个字符就不标红了

es6
windy 8 years ago
parent
commit
5b3e098ad1
  1. 2
      bi/core.js
  2. 2
      docs/core.js
  3. 2
      src/core/func/dom.js

2
bi/core.js

@ -16139,7 +16139,7 @@ BI.extend(jQuery.fn, {
* @private * @private
*/ */
__textKeywordMarked__: function (text, keyword, py) { __textKeywordMarked__: function (text, keyword, py) {
if (!BI.isKey(keyword)) { if (!BI.isKey(keyword) || (text + "").length > 100) {
return this.text((text + "").replaceAll(" ", " ")); return this.text((text + "").replaceAll(" ", " "));
} }
keyword = keyword + ""; keyword = keyword + "";

2
docs/core.js

@ -22157,7 +22157,7 @@ BI.extend(jQuery.fn, {
* @private * @private
*/ */
__textKeywordMarked__: function (text, keyword, py) { __textKeywordMarked__: function (text, keyword, py) {
if (!BI.isKey(keyword)) { if (!BI.isKey(keyword) || (text + "").length > 100) {
return this.text((text + "").replaceAll(" ", " ")); return this.text((text + "").replaceAll(" ", " "));
} }
keyword = keyword + ""; keyword = keyword + "";

2
src/core/func/dom.js

@ -19,7 +19,7 @@ BI.extend(jQuery.fn, {
* @private * @private
*/ */
__textKeywordMarked__: function (text, keyword, py) { __textKeywordMarked__: function (text, keyword, py) {
if (!BI.isKey(keyword)) { if (!BI.isKey(keyword) || (text + "").length > 100) {
return this.text((text + "").replaceAll(" ", " ")); return this.text((text + "").replaceAll(" ", " "));
} }
keyword = keyword + ""; keyword = keyword + "";

Loading…
Cancel
Save