mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-25 23:36:01 +00:00
fix
This commit is contained in:
@@ -56,6 +56,7 @@ function clean(segment) {
|
||||
}
|
||||
|
||||
function extractIndexColumns(sql) {
|
||||
if (!sql) return [];
|
||||
const sqlText = sql // your variable
|
||||
.replace(/\s+/g, ' ') // collapse whitespace
|
||||
.replace(/--.*?$/gm, '') // strip line comments
|
||||
|
||||
Reference in New Issue
Block a user