mirror of
https://github.com/dataease/dataease.git
synced 2026-05-14 04:12:11 +08:00
fix: 修复sql去掉注释的bug
This commit is contained in:
@@ -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, " ");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user