mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-05 22:11:44 +02:00
allow no space between the index table name and columns list
This commit is contained in:
1 parent
d77479131a
commit
ebfbb55f91
35 files changed
+61
-43
No files matched your search
@@ -1590,7 +1590,7 @@ export default class CommonHelper {
|
||||
where: "",
|
||||
};
|
||||
|
||||
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 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) {
|
||||
|
||||
Reference in new issue
Block a user