fix: 修复sql去掉注释的bug

This commit is contained in:
taojinlong
2026-03-23 16:50:16 +08:00
committed by tjlygdx
parent 44fd80b852
commit 0ff9938a2c

View File

@@ -219,7 +219,7 @@ public abstract class Provider {
}
public String replaceComment(String s) {
String regex = "/\\*[\\s\\S]*?\\*/|-- .*";
String regex = "/\\*[\\s\\S]*?\\*/|--.*";
return s.replaceAll(regex, " ");
}