Skip to content

Commit

Permalink
feat: contains and containsItems [DHIS2-16211] (#50)
Browse files Browse the repository at this point in the history
* feat: contains and containsItems [DHIS2-16211]

* chore: bump version to 1.0.36
  • Loading branch information
jimgrace authored Feb 27, 2024
1 parent 0fa942a commit 66646a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<packaging>jar</packaging>
<name>DHIS Antlr Expression Parser</name>
<groupId>org.hisp.dhis.parser</groupId>
<version>1.0.35</version>
<version>1.0.36</version>

<description>Antlr Expression Parser</description>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ expr

// Functions (alphabetical)

| it='contains(' expr (',' expr )+ ')'
| it='containsItems(' expr (',' expr )+ ')'
| it='firstNonNull(' expr (',' expr )* ')'
| it='greatest(' expr (',' expr )* ')'
| it='if(' expr ',' expr ',' expr ')'
Expand All @@ -64,7 +66,6 @@ expr
| it='orgUnit.program(' WS* UID WS* (',' WS* UID WS* )* ')'
| it='removeZeros(' expr ')'
| it='subExpression(' expr ')'
| it='textContains(' expr (',' expr )+ ')'

// Aggergation functions (alphabetical)

Expand Down Expand Up @@ -292,6 +293,8 @@ VERTICAL_BAR_2 : '||';

// Functions (alphabetical)

CONTAINS : 'contains(';
CONTAINS_ITEMS : 'containsItems(';
FIRST_NON_NULL : 'firstNonNull(';
GREATEST : 'greatest(';
IF : 'if(';
Expand All @@ -309,7 +312,6 @@ ORGUNIT_GROUP : 'orgUnit.group(';
ORGUNIT_PROGRAM : 'orgUnit.program(';
REMOVE_ZEROS : 'removeZeros(';
SUB_EXPRESSION : 'subExpression(';
TEXT_CONTAINS : 'textContains(';

// Aggegation functions (alphabetical)

Expand Down

0 comments on commit 66646a5

Please sign in to comment.