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

Fix MONGOID-4754 Some regular expressions are missing beginning/end anchors or are using them incorrectly #4645

Merged
merged 7 commits into from Jun 24, 2019

Conversation

p-mongo
Copy link
Contributor

@p-mongo p-mongo commented Jun 19, 2019

@p-mongo p-mongo changed the title MONGOID-4754 Some regular expressions are missing beginning/end anchors or are using them incorrectly Fix MONGOID-4754 Some regular expressions are missing beginning/end anchors or are using them incorrectly Jun 19, 2019
@p-mongo p-mongo merged commit 9c8c7f2 into mongodb:master Jun 24, 2019
@p-mongo p-mongo deleted the 4754 branch June 24, 2019 16:13
p-mongo pushed a commit to p-mongo/mongoid that referenced this pull request Jun 24, 2019
* remove-multi-value:
  Remove multi_value? since it is not used anywhere
  Fix MONGOID-4754 Some regular expressions are missing beginning/end anchors or are using them incorrectly (mongodb#4645)
  Fix headings in all Ruby files (mongodb#4643)
p-mongo added a commit that referenced this pull request Jun 24, 2019
…nchors or are using them incorrectly (#4645)

* Fix conditions in Selector to not accept input including magic strings but also extra bits

* Add tests for Numeric behavior

* Cut docstring to 80 chars

* multi_value? tests

* Remove in? and nin? completely since they are used once and are trivial

* Tests for multi_selection?

* Use \A and \z for beginning/end of string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants