bkui-vue 2.0.2-beta.38 → 2.0.2-beta.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +3 -3
- package/dist/index.umd.js +1 -1
- package/lib/index.js +1 -1
- package/lib/search-select/index.js +2 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
@@ -2581,10 +2581,10 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
2581
2581
|
if (!str) return str;
|
2582
2582
|
var keyword = props.keyword;
|
2583
2583
|
var len = keyword.length;
|
2584
|
-
if (!((_keyword = keyword) !== null && _keyword !== void 0 && _keyword.trim().length) || !str.toLocaleLowerCase().includes(keyword.toLocaleLowerCase())) return str;
|
2584
|
+
if (!((_keyword = keyword) !== null && _keyword !== void 0 && _keyword.trim().length) || !str.toLocaleLowerCase().includes(keyword.toLocaleLowerCase().trim())) return str;
|
2585
2585
|
var list = [];
|
2586
2586
|
var lastIndex = -1;
|
2587
|
-
keyword = keyword.replace(/([.*/]{1})/gim, '\\$1');
|
2587
|
+
keyword = keyword.replace(/([.*/]{1})/gim, '\\$1').trim();
|
2588
2588
|
str.replace(new RegExp("".concat(keyword), 'igm'), function (key, index) {
|
2589
2589
|
if (list.length === 0 && index !== 0) {
|
2590
2590
|
list.push(str.slice(0, index));
|