Skip to content

Commit

Permalink
Merge pull request #50 from ripe-tech/jl/240-filter_orders
Browse files Browse the repository at this point in the history
#240 Filter orders
  • Loading branch information
joao-conde authored Dec 15, 2022
2 parents 3c2fee3 + 92c186a commit 2d58704
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

*
* Add alias for operator `in` - [ripe-pulse/#240](https://github.com/ripe-tech/ripe-pulse/issues/240)

### Changed

Expand Down
5 changes: 3 additions & 2 deletions js/filter.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { flatMap } from "./util";

const OP_REGEX = /(?:(?:<=)|(?:<)|(?:>=)|(?:>)|(?:=))/;
const OP_REGEX = /(?:(?:<=)|(?:<)|(?:\[\])|(?:>=)|(?:>)|(?:=))/;

const OP_ALIAS = {
">": "gt",
">=": "gte",
"<": "lt",
"<=": "lte"
"<=": "lte",
"[]": "in"
};

export const FILTER_KEYWORDS = {
Expand Down

0 comments on commit 2d58704

Please sign in to comment.