Commit 9932607e by 吴博

Merge branch 'fixbug/fix1002979' into 'master'

bug [none] 修复1002979 匹配四个重复的汉字

See merge request rays/pcloud-book!763
parents a9b8d578 1bbf27e1
......@@ -104,7 +104,8 @@ public class ESBookAndAdviserBizImpl implements ESBookAndAdviserBiz {
iterator.remove();
}
if (bookName.matches("^[`~!@#$%^&*()+=|{}:;\\[\\].<>/\\\\?~!@#¥%……()——+|{}【】‘;:”“’。,,、?0123456789]+$") ||
bookName.matches("(["+BookConstant.HANZI+"])[^\1]{2,}\1") ||
bookName.matches("([哈]){4,}") ||
bookName.matches("([或]){4,}") ||
bookName.matches("(.*)(红榜)(.*)")){
iterator.remove();
}
......
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