diff --git a/src/filterRows.js b/src/filterRows.js index 659b462..f4849ce 100644 --- a/src/filterRows.js +++ b/src/filterRows.js @@ -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); })