fix(文档拆分): 78378
This commit is contained in:
+1
-1
@@ -380,7 +380,7 @@ public class SarFileCompareInfoController extends JeroController<SarFileCompareI
|
||||
return r;
|
||||
} catch (Exception ex) {
|
||||
log.error("发起文档对比失败:" + ex.getMessage());
|
||||
return Result.OK("发起文档对比失败!");
|
||||
return Result.error("发起文档对比失败!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -163,7 +163,7 @@ public class SarFileCompareInfoServiceImpl extends ServiceImpl<SarFileCompareInf
|
||||
String rightTxt = rightItemList.get(j).getItemsText();
|
||||
if (null != rightTxt && !rightTxt.isEmpty()) {
|
||||
double similarity = 0;
|
||||
// 使用正则表达式判断是否是纯<img>标签,不以</p>结尾,也不以</table>结尾
|
||||
// 使用正则表达式判断是否是纯<img>标签,不以</p>结尾,也不以</table>结尾
|
||||
String leftTxtTrim = leftTxt.trim();
|
||||
String rightTxtTrim = rightTxt.trim();
|
||||
boolean leftTxtMatches = Pattern.matches("<img[^>]+>(?<!</p>)(?<!</table>)", leftTxtTrim);
|
||||
|
||||
Reference in New Issue
Block a user