Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit ecd79bb

Browse files
author
Hans Kristian Flaatten
committed
fix(docs): use correct example value for reular expressions
1 parent 1a3d564 commit ecd79bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ useful when building an API and accepting various user specificed queries.
3232
| not exists | `?foo=!` | `{ foo: { $exists: false }}` |
3333
| greater than | `?foo=>10` | `{ foo: { $gt: 10 }}` |
3434
| less than | `?foo=<10` | `{ foo: { $lt: 10 }}` |
35-
| starts with | `?foo=^bar` | `{ foo: { $regex: "^foo", $options: "i" }}` |
36-
| ends with | `?foo=$bar` | `{ foo: { $regex: "foo$", $options: "i" }}` |
37-
| contains | `?foo=~bar` | `{ foo: { $regex: "foo", $options: "i" }}` |
35+
| starts with | `?foo=^bar` | `{ foo: { $regex: "^bar", $options: "i" }}` |
36+
| ends with | `?foo=$bar` | `{ foo: { $regex: "bar$", $options: "i" }}` |
37+
| contains | `?foo=~bar` | `{ foo: { $regex: "bar", $options: "i" }}` |
3838
| in array | `?foo[]=bar&foo[]=baz` | `{ foo: { $in: ['bar', 'baz'] }}` |
3939
| not in array | `?foo[]=!bar&foo[]=!baz` | `{ foo: { $nin: ['bar', 'baz'] }}` |
4040

0 commit comments

Comments
 (0)