Skip to content

Commit

Permalink
fix for #850
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaskruchten committed Jan 15, 2018
1 parent 8b705ad commit 8a78ef3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/pivot.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -763,11 +763,11 @@ callWithJQuery ($) ->
return true if real_filter.length == 0
return Math.sign(sorter(v.toLowerCase(), real_filter)) in accepted
accept =
if filter.startsWith(">=") then accept_gen(">=", [1,0])
else if filter.startsWith("<=") then accept_gen("<=", [-1,0])
else if filter.startsWith(">") then accept_gen(">", [1])
else if filter.startsWith("<") then accept_gen("<", [-1])
else if filter.startsWith("~") then (v) ->
if filter.indexOf(">=") == 0 then accept_gen(">=", [1,0])
else if filter.indexOf("<=") == 0 then accept_gen("<=", [-1,0])
else if filter.indexOf(">") == 0 then accept_gen(">", [1])
else if filter.indexOf("<") == 0 then accept_gen("<", [-1])
else if filter.indexOf("~") == 0 then (v) ->
return true if filter.substring(1).trim().length == 0
v.toLowerCase().match(filter.substring(1))
else (v) -> v.toLowerCase().indexOf(filter) != -1
Expand Down

0 comments on commit 8a78ef3

Please sign in to comment.