Skip to content

Commit 5d9aceb

Browse files
committed
Fix randomUUID() being considered a variable to import
1 parent b3380f4 commit 5d9aceb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/database/query-augmentation/subquery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ class SubQueryClause extends SubClauseCollection {
6969
export const varInExp = (variable: string | Variable) =>
7070
variable.toString().startsWith('$')
7171
? ''
72-
: /(?:.+\()?([^.]+)\.?.*/.exec(variable.toString())?.[1] ?? '';
72+
: /(?:.+\()?\)?([^.]*)\.?.*/.exec(variable.toString())?.[1] ?? '';

0 commit comments

Comments
 (0)