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

Case sensitivity option is not applied inside lambda expression #221

Closed
ealeykin opened this issue Jan 19, 2022 · 0 comments · Fixed by #222
Closed

Case sensitivity option is not applied inside lambda expression #221

ealeykin opened this issue Jan 19, 2022 · 0 comments · Fixed by #222
Assignees
Labels

Comments

@ealeykin
Copy link
Contributor

ealeykin commented Jan 19, 2022

Case sensitivity option is not applied inside lambda expression:

var interpreter = new Interpreter(InterpreterOptions.LambdaExpressions|InterpreterOptions.DefaultCaseInsensitive)
    .SetFunction("Now", (Func<DateTimeOffset>) (() => DateTimeOffset.UtcNow))
    .SetVariable("List", new List<DateTimeOffset>());

interpreter.Parse("list.Any(x => x > now())");

Will parse list but then throws Unknown identifier 'now' (at index 5)

@metoule metoule self-assigned this Jan 19, 2022
metoule added a commit to metoule/DynamicExpresso that referenced this issue Jan 19, 2022
Case insensitivity is now also used when trying to dinf extension methods.
Fixes dynamicexpresso#221
metoule added a commit that referenced this issue Jan 20, 2022
Case insensitivity is now also used when trying to dinf extension methods.
Fixes #221
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants