fix: String compare if hay is alphanumeric
This commit is contained in:
parent
e25ef86a63
commit
bbca6d8f60
@ -111,7 +111,10 @@ function getFilterMethod(filter) {
|
|||||||
containsNumber(keyword, cells) {
|
containsNumber(keyword, cells) {
|
||||||
return cells
|
return cells
|
||||||
.filter(cell => {
|
.filter(cell => {
|
||||||
const hay = numberCompareValue(cell);
|
let hay = numberCompareValue(cell);
|
||||||
|
if (isNaN(hay)) {
|
||||||
|
hay = stringCompareValue(cell);
|
||||||
|
}
|
||||||
const needle = keyword;
|
const needle = keyword;
|
||||||
return !needle || hay.toString().includes(needle);
|
return !needle || hay.toString().includes(needle);
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user