Skip to content

Commit 4155c99

Browse files
n4zukkermikefarah
authored andcommitted
Typo in cats example
The quotation mark and closing parenthesis were swapped. Before: ``` $ echo "Hello kitty" | yq eval 'test("(?i)cats)"' Error: bad expression - probably missing close bracket on TEST ``` After: ``` $ echo "Hello kitty" | yq eval 'test("(?i)cats")' false ```
1 parent b26de94 commit 4155c99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/yqlib/doc/operators/headers/string-operators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## RegEx
44
This uses Golang's native regex functions under the hood - See their [docs](https://github.com/google/re2/wiki/Syntax) for the supported syntax.
55

6-
Case insensitive tip: prefix the regex with `(?i)` - e.g. `test("(?i)cats)"`.
6+
Case insensitive tip: prefix the regex with `(?i)` - e.g. `test("(?i)cats")`.
77

88
### match(regEx)
99
This operator returns the substring match details of the given regEx.

0 commit comments

Comments
 (0)