mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
fix(studio): backslash escaping in linter query (#22829)
This commit is contained in:
1 parent
2bf347a585
commit
8ad3a33104
1 file changed
+4
-4
@@ -240,16 +240,16 @@ where
|
||||
and (
|
||||
(
|
||||
-- Example: auth.uid()
|
||||
qual ~ '(auth)\.(uid|jwt|role|email)\(\)'
|
||||
qual ~ '(auth)\\.(uid|jwt|role|email)\\(\\)'
|
||||
-- Example: select auth.uid()
|
||||
and lower(qual) !~ 'select\s+(auth)\.(uid|jwt|role|email)\(\)'
|
||||
and lower(qual) !~ 'select\\s+(auth)\\.(uid|jwt|role|email)\\(\\)'
|
||||
)
|
||||
or
|
||||
(
|
||||
-- Example: auth.uid()
|
||||
with_check ~ '(auth)\.(uid|jwt|role|email)\(\)'
|
||||
with_check ~ '(auth)\\.(uid|jwt|role|email)\\(\\)'
|
||||
-- Example: select auth.uid()
|
||||
and lower(with_check) !~ 'select\s+(auth)\.(uid|jwt|role|email)\(\)'
|
||||
and lower(with_check) !~ 'select\\s+(auth)\\.(uid|jwt|role|email)\\(\\)'
|
||||
)
|
||||
))
|
||||
union all
|
||||
|
||||
Reference in new issue
Block a user