Skip to content

Commit e67e7c5

Browse files
committed
Handle Not exp better
1 parent 4c2aa25 commit e67e7c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"name": "@slackbyte/odata-query-parser",
1515
"description": "A highly versatile and fast OData Version 4.01 Parser.",
16-
"version": "0.0.3",
16+
"version": "0.0.4",
1717
"main": "dist/index.js",
1818
"types": "dist/index.d.ts",
1919
"files": [ "dist" ],

src/lib/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class OdataQueryParser {
7878
continue;
7979
}
8080
const trimTillSpaceStr = tillSpaceStr.trim();
81-
if (operatorLexer[trimTillSpaceStr] && operatorLexer[trimTillSpaceStr]().subType === 'notExp' && (this.prevLexerSubType === 'orExp' || this.prevLexerSubType === 'andExp')) {
81+
if (operatorLexer[trimTillSpaceStr] && operatorLexer[trimTillSpaceStr]().subType === 'notExp') {
8282
// This is a valid condition for NOT expression to be in the string;
8383
const token: IOdataFilterToken = operatorLexer[trimTillSpaceStr]();
8484
this.appendToFilterToken(token);

0 commit comments

Comments
 (0)