Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

nested filters can't be handled because of bug in reg-ex #64

Open
datze opened this issue Nov 14, 2022 · 1 comment
Open

nested filters can't be handled because of bug in reg-ex #64

datze opened this issue Nov 14, 2022 · 1 comment

Comments

@datze
Copy link

datze commented Nov 14, 2022

The Java OData Generator sometimes generates and filter strings which are nested like this:

(((a eq '1') and (b eq '2')) and (c eq '3')) 

In odata-helper.js this filter is split into

((a eq '1')
(b eq '2'))
(c eq '3'))

which do not match the regular expressions in applyFilter() because these can only handle one open or close parenthesis.

@datze
Copy link
Author

datze commented Nov 14, 2022

fixed by #63

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant