Commit dae9c6e5 authored by 技术部-任文超's avatar 技术部-任文超

优化布尔表达式

parent 7d3f0ba9
...@@ -51,7 +51,7 @@ public class ValidationUtil { ...@@ -51,7 +51,7 @@ public class ValidationUtil {
log.info("[ValidationUtil][validateChinese]:[chinese][unicode][length]:[{}][{}][{}]", chinese, chinese.length(), uniCodeTemp); log.info("[ValidationUtil][validateChinese]:[chinese][unicode][length]:[{}][{}][{}]", chinese, chinese.length(), uniCodeTemp);
} }
// 兼容扩展字集合 // 兼容扩展字集合
valid = Boolean.logicalOr(valid, chineseExtendPattern.matcher(chinese).find()); valid = valid || chineseExtendPattern.matcher(chinese).find();
return valid; return valid;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment