Skip to content
This repository has been archived by the owner on Feb 17, 2020. It is now read-only.

Commit

Permalink
NOT LIKE for Mongo implemented/fixed. Closes #14
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbanda committed Jun 19, 2019
1 parent 8445615 commit c7bbfd6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ protected class MongoAsyncReadonlyRepo[E: Format, ID: Format](
Json.obj("$regex" -> value, "$options" -> "i")

case RegexNotEqualsCriterion(_, value) =>
Json.obj("$regex" -> s"^(${value})", "$options" -> "i")
Json.obj("$regex" -> s"^(?!${value})", "$options" -> "i")

case c: NotEqualsCriterion[T] => {
// val json = c.value match {
Expand Down

0 comments on commit c7bbfd6

Please sign in to comment.