mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-16 21:01:10 +08:00
further improved like->regex handling
This commit is contained in:
parent
08080284d4
commit
dd88072bc5
@ -256,7 +256,8 @@ public final class ExpressionUtils {
|
||||
like = like + "$";
|
||||
}
|
||||
}
|
||||
like = like.replace(".", "\\.").replace("%", ".*").replace("_", ".");
|
||||
like = like.replace(".", "\\.").replace("*", "\\*").replace("?", "\\?")
|
||||
.replace("%", ".*").replace("_", ".");
|
||||
return ConstantImpl.create(like);
|
||||
} else if (expr instanceof Operation<?>) {
|
||||
Operation<?> o = (Operation<?>)expr;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user