Skip to content

Commit 8048541

Browse files
committed
fix keywords toLowerCase
1 parent c8c87fc commit 8048541

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/grid/init-rows.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,10 +290,12 @@ export default {
290290
return true;
291291
}
292292

293-
let hasMatched = false;
294-
295-
const keywords = keywordsStr.split(/\s+/g).filter((s) => s);
293+
const keywords = `${keywordsStr}`.trim().toLowerCase().split(/\s+/g).filter((s) => s);
294+
if (!keywords.length) {
295+
return true;
296+
}
296297

298+
let hasMatched = false;
297299
const getTextMatched = (text) => {
298300

299301
const lowText = text.toLowerCase();

0 commit comments

Comments
 (0)