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

ParameterBindingJsonReader doesn't consider regex options #4806

Open
Cimballi opened this issue Oct 10, 2024 · 0 comments · May be fixed by #4807
Open

ParameterBindingJsonReader doesn't consider regex options #4806

Cimballi opened this issue Oct 10, 2024 · 0 comments · May be fixed by #4807
Assignees
Labels
type: bug A general bug

Comments

@Cimballi
Copy link

Cimballi commented Oct 10, 2024

It looks like the following query doesn't take the options "i" into account
@query = { 'a': 'b', 'c': /^true$/i }

in the logs = { "a" : "b", "c" : { "$regularExpression" : { "pattern" : "^true$", "options" : ""}}}

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 10, 2024
@mp911de mp911de self-assigned this Oct 11, 2024
@mp911de mp911de added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Oct 11, 2024
@mp911de mp911de changed the title Query with pattern + options doesn't take options into account ParameterBindingJsonReader doesn't consider regex options Oct 11, 2024
mp911de added a commit that referenced this issue Oct 11, 2024
We now retain BsonRegularExpression.options when resolving bind values from the original BsonRegularExpression.

Closes #4806
@mp911de mp911de linked a pull request Oct 11, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants