Skip to content

Commit

Permalink
优化匹配条件范围的报错提示;
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyLemon committed Dec 13, 2020
1 parent b47140b commit 7fa6ac1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2064,7 +2064,7 @@ else if ("!=null".equals(c)) {
}
else if (isPrepared() && (c.contains("--") || PATTERN_RANGE.matcher(c).matches() == false)) {
throw new UnsupportedOperationException(key + "{}:value 的 value 中 " + c + " 不合法!"
+ "预编译模式下 key{}:\"condition\" 中 condition 必须 为 =null 或 !=null 或 符合正则表达式 ^[0-9%!=<>,]+$ !不允许连续减号 -- !不允许空格!");
+ "预编译模式下 key{}:\"condition\" 中 condition 必须 为 =null 或 !=null 或 符合正则表达式 " + PATTERN_RANGE + " !不允许连续减号 -- !不允许空格!");
}

index = c == null ? -1 : c.indexOf("(");
Expand Down

0 comments on commit 7fa6ac1

Please sign in to comment.