Skip to content

Commit

Permalink
fix: fix regex for SQL-like operators with proper precedence handling
Browse files Browse the repository at this point in the history
  • Loading branch information
gvozdvmozgu authored Jan 26, 2025
1 parent 93f0344 commit 21def56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/lib-dialects/src/postgres.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub fn raw_dialect() -> Dialect {
),
Matcher::regex(
"trgm_operator",
r#"%|<%|%>|<<%|%>>|<->|<<->|<->>|<<<->|<->>>"#,
r#"(<<<->|<->>>|<<->|<->>|<->|<<%|%>>|%>|<%|%)"#,
SyntaxKind::LikeOperator
),
Matcher::string(
Expand Down

0 comments on commit 21def56

Please sign in to comment.