File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -88,11 +88,11 @@ export class QueryNormalizer {
8888 // Check for table browsing patterns (simple SELECT * with basic conditions)
8989 const isTableBrowsing =
9090 // Simple SELECT * queries
91- ( upperQuery . match ( / ^ S E L E C T \* F R O M / ) ||
91+ ( upperQuery . match ( / ^ S E L E C T \* F R O M / ) !== null ||
9292 // SELECT with specific columns from single table
93- upperQuery . match ( / ^ S E L E C T [ ^ ( ) ] + F R O M [ ^ \s , ; ( ) ] + $ / ) ) &&
93+ upperQuery . match ( / ^ S E L E C T [ ^ ( ) ] + F R O M [ ^ \s , ; ( ) ] + $ / ) !== null ) &&
9494 // With basic WHERE conditions (no subqueries or complex joins)
95- ( ! upperQuery . includes ( '(' ) || upperQuery . match ( / W H E R E [ ^ ( ) ] + $ / ) ) &&
95+ ( ! upperQuery . includes ( '(' ) || upperQuery . match ( / W H E R E [ ^ ( ) ] + $ / ) !== null ) &&
9696 // No complex operations
9797 ! upperQuery . includes ( 'JOIN' ) &&
9898 ! upperQuery . includes ( 'UNION' ) &&
You can’t perform that action at this time.
0 commit comments