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

Use RegExp in where without having to use the RegExp comparator #13

Closed
jamesfer opened this issue Mar 6, 2018 · 1 comment · Fixed by #51
Closed

Use RegExp in where without having to use the RegExp comparator #13

jamesfer opened this issue Mar 6, 2018 · 1 comment · Fixed by #51
Labels

Comments

@jamesfer
Copy link
Owner

jamesfer commented Mar 6, 2018

When a regular expression is used as the value in a where clause, it should be implied to use the RegExp operator, =~.

query.where({ name: /[a-z]*/ })
// WHERE name =~ '[a-z]*'
jamesfer added a commit that referenced this issue Aug 8, 2018
Javascript RegExp objects can now be passed into the regexp comparator and used directly as a value
in Where clauses.

Closes #13
jamesfer added a commit that referenced this issue Aug 6, 2019
Javascript RegExp objects can now be passed into the regexp comparator and used directly as a value
in Where clauses.

Closes #13
jamesfer added a commit that referenced this issue Aug 6, 2019
Javascript RegExp objects can now be passed into the regexp comparator and used directly as a value
in Where clauses.

Closes #13
jamesfer pushed a commit that referenced this issue Aug 6, 2019
# [4.2.0](v4.1.0...v4.2.0) (2019-08-06)

### Features

* **Where:** allow RegExp objects directly in where clause ([595b6a9](595b6a9)), closes [#13](#13)

[skip ci]
@jamesfer
Copy link
Owner Author

jamesfer commented Aug 6, 2019

🎉 This issue has been resolved in version 4.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

1 participant