Skip to content

Commit

Permalink
fix: Filter numeric columns by value
Browse files Browse the repository at this point in the history
No need to use = to filter numeric values by their value
  • Loading branch information
netchampfaris committed Apr 16, 2019
1 parent 007579f commit 944010d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/filterRows.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,13 @@ function guessFilter(keyword = '') {
}
}

if (isNumber(compareString)) {
return {
type: 'equals',
text: parseInt(keyword, 10)
};
}

if (keyword.startsWith('!=')) {
if (isNumber(compareString)) {
return {
Expand Down

0 comments on commit 944010d

Please sign in to comment.