Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1850f48

Browse files
committedNov 11, 2024··
oops, possible to have have a space
1 parent 56c5953 commit 1850f48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/db/query-parsers/sql.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const stringify = require('json-stringify-safe')
1414
*
1515
* @type {RegExp}
1616
*/
17-
const selectSubquery = /from\s+?\((?<subquery>select.*?)\)(?:\s+?)?/gi
17+
const selectSubquery = /from\s*?\((?<subquery>select.*?)\)\s*?/gi
1818

1919
/**
2020
* Parses a SQL statement into the parts we want to report as metadata in

0 commit comments

Comments
 (0)
Please sign in to comment.