|
|
|
@ -103,6 +103,11 @@ public enum MongoRegexCreator { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* @param source |
|
|
|
|
|
|
|
* @return |
|
|
|
|
|
|
|
* @since 2.2.14 |
|
|
|
|
|
|
|
*/ |
|
|
|
public Object toCaseInsensitiveMatch(Object source) { |
|
|
|
public Object toCaseInsensitiveMatch(Object source) { |
|
|
|
return source instanceof String ? new BsonRegularExpression(Pattern.quote((String) source), "i") : source; |
|
|
|
return source instanceof String ? new BsonRegularExpression(Pattern.quote((String) source), "i") : source; |
|
|
|
} |
|
|
|
} |
|
|
|
|