Skip to content

Addition of test cases for $regex and fix handling strings #6

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

Closed
wants to merge 1 commit into from

Conversation

jeniawhite
Copy link
Contributor

Added two cases for MongoDB $regex usage:

  1. Case of $regex without options.
  2. Case of $regex with options.
    Fixed handling of strings in $regex field (missed that part on MongoDB documentation).

Signed-off-by: Evgeniy Belyi jeniawhite92@gmail.com

@jeniawhite
Copy link
Contributor Author

@thomas4019
Thank you for responding quickly.
I did not notice the tests and the fact that MongoDB supports $regex both as a String and as a Regex Object.
I've added tests and ran them in order to verify my fix.
Terribly sorry for the inconvenience.

…ases for MongoDB $regex usage.Case of $regex without options.Case of $regex with options.Fixed handling of strings in $regex field (missed that part on MongoDB support side).Signed-off-by: Evgeniy Belyi <jeniawhite92@gmail.com>
@jeniawhite
Copy link
Contributor Author

Somehow did not get your commit with the changes so I've coded a quick fix.
Disregard the PR 😄

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.

1 participant