mirror of
https://github.com/Rolands-Laucis/Socio.git
synced 2026-05-15 14:15:57 -06:00
regex global flag for socio_string_regex
This commit is contained in:
parent
9789f1c61f
commit
8f05fd979a
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ import type { QueryMarker } from "./types.js";
|
|||
export type SocioStringObj = { str: string, markers: string[] };
|
||||
|
||||
//regex
|
||||
export const socio_string_regex = /socio`(?<sql>.*?)`/is;
|
||||
export const socio_string_regex = /socio`(?<sql>.*?)`/igs;
|
||||
export const table_names_regex = /(?:FROM|INTO)[\s]+(?<tables>[\w,\s]+?)([\s]+)?(?:\(|WHERE|VALUES|;|LIMIT|GROUP|ORDER|$)/mi;
|
||||
export const socio_string_markers_regex = /--(?<markers>(?:-?(?:socio|auth|perm))*)/i;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue