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) {
|
||||
return cells
|
||||
.filter(cell => {
|
||||
const hay = numberCompareValue(cell);
|
||||
let hay = numberCompareValue(cell);
|
||||
if (isNaN(hay)) {
|
||||
hay = stringCompareValue(cell);
|
||||
}
|
||||
const needle = keyword;
|
||||
return !needle || hay.toString().includes(needle);
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user