Skip to content

Commit 72bab0d

Browse files
Update comparisons page for like & contains (#922)
## What is the goal of this PR? Update comparisons page for like & contains ## What are the changes implemented in this PR? Update comparisons page for like & contains
1 parent c59abe7 commit 72bab0d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

typeql/modules/ROOT/pages/statements/comparisons.adoc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ Thus, the result of comparing it with `PT24H` (24 hours) is indeterminate.
8282

8383
`string` values allow two additional comparison operators.
8484

85-
WARNING: These operators are unimplemented.
86-
8785
`contains` allows for checking if the string on the left-hand side contains the right-hand side string as a substring.
88-
The `contains` operator is case-insensitive.
86+
The `contains` operator performs case-insensitive matching by https://www.w3.org/TR/charmod-norm/#definitionCaseFolding[case-folding] unicode strings.
8987

90-
`like` evaluates whether the string on the left-hand side of the operator matches the regular expression string on the right-hand side.
88+
`like` evaluates whether the string on the left-hand side of the operator matches the regular expression string on the right-hand side. The regular expression must follow the https://docs.rs/regex/latest/regex/#syntax[rust regex syntax].

0 commit comments

Comments
 (0)