removed unnecessary helper method and updated index parser regex

This commit is contained in:
Gani Georgiev
2023-03-19 22:15:18 +02:00
parent 29621303df
commit 1b45e23c81
32 changed files with 40 additions and 49 deletions
+1 -1
View File
@@ -1466,7 +1466,7 @@ export default class CommonHelper {
where: "",
};
const indexRegex = /create\s+(unique\s+)?\s*index\s*(if\s+not\s+exists\s+)?([\w\"\'\`\[\]\.]*)\s+on\s+([\w\"\'\`\[\]\.]*)\s+\(([\s\S]*)\)(?:\s*where\s+([\s\S]*))?/gmi;
const indexRegex = /create\s+(unique\s+)?\s*index\s*(if\s+not\s+exists\s+)?(\S*)\s+on\s+(\S*)\s+\(([\s\S]*)\)(?:\s*where\s+([\s\S]*))?/gmi;
const matches = indexRegex.exec((idx || "").trim())
if (matches?.length != 7) {