Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow quoted terms within a range expression #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

maxtilford-sc
Copy link

This change allows terms within a range expression to be quoted.

This works in our other tools and a we have a bunch of queries we'd like to use this library on.

This seemed like the simplest fix, but happy to make changes if it's not correct.

@coveralls
Copy link

coveralls commented Mar 10, 2021

Coverage Status

Coverage increased (+0.09%) to 84.383% when pulling 15a9824 on socialchorus:master into 5dd1d6c on bripkens:master.

@ddio
Copy link

ddio commented Aug 16, 2022

We also encountered this issue. Please merge this into master!

@@ -333,6 +333,13 @@ describe('queryParser', () => {
expect(results['left']['term_max']).to.equal('2017-11-18T04:28:11.999Z');
expect(results['left']['inclusive']).to.equal('right');
});

it('parses a quoted term in a range expression', () => {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please also add a toString() test case? Thank you!

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have bandwidth at the moment.

@ddio Since you're interested perhaps you'd like to add a toString() test case?

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

Successfully merging this pull request may close these issues.

None yet

4 participants