Skip to content

Commit 5a22956

Browse files
authored
DOCSP-34081 collectionsRegex typos (#187) (#196)
1 parent 6b1664c commit 5a22956

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

source/includes/api/requests/start-filtered.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ curl -X POST "http://localhost:27182/api/v1/start" --data '
55
"includeNamespaces": [
66
{
77
"database": "sales",
8-
"collectionRegex": {
8+
"collectionsRegex": {
99
"pattern": "^accounts_.+$",
1010
"options": "i"
1111
}

source/reference/collection-level-filtering.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Filters have the following syntax:
6262
"pattern": "<regex-pattern>",
6363
"options": "<options>"
6464
},
65-
"collectionRegex": {
65+
"collectionsRegex": {
6666
"pattern": "<regex-pattern>",
6767
"options": "<options>"
6868
}
@@ -78,7 +78,7 @@ Filters have the following syntax:
7878
"pattern": "<regex-pattern>",
7979
"options": "<options>"
8080
},
81-
"collectionRegex": {
81+
"collectionsRegex": {
8282
"pattern": "<regex-pattern>",
8383
"options": "<options>"
8484
}
@@ -89,7 +89,7 @@ Filters must include either the ``database`` field or the ``databaseRegex`` fiel
8989

9090
If you need the filter to match specific collections, you can use either
9191
the ``collections`` array to specify collections individually or define
92-
a regular expression using the ``collectionRegex`` field.
92+
a regular expression using the ``collectionsRegex`` field.
9393

9494
.. _c2c-configure-filter:
9595

@@ -143,7 +143,7 @@ Configure a Filter
143143
"includeNamespaces": [
144144
{
145145
"database": "sales",
146-
"collectionRegex": {
146+
"collectionsRegex": {
147147
"pattern": "^accounts_.+?$",
148148
"options": "ms"
149149
}

source/reference/collection-level-filtering/filter-regex.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ you can use regular expressions:
3030
"pattern": "<string>",
3131
"options": "<string>"
3232
},
33-
"collectionRegex": {
33+
"collectionsRegex": {
3434
"pattern": "<string>",
3535
"options": "<string>"
3636
}
@@ -45,16 +45,16 @@ Regular expressions in filter documents use the following fields:
4545
- Type
4646
- Description
4747

48-
* - ``collectionRegex``
48+
* - ``collectionsRegex``
4949
- document
5050
- Specifies which collections you want the filter
5151
to match.
5252

53-
* - ``collectionRegex.options``
53+
* - ``collectionsRegex.options``
5454
- string
5555
- Regular expression options to use in the match.
5656

57-
* - ``collectionRegex.pattern``
57+
* - ``collectionsRegex.pattern``
5858
- string
5959
- Regular expression pattern to match.
6060

@@ -89,7 +89,7 @@ Details
8989
Regular Expression Options
9090
--------------------------
9191

92-
``databaseRegex`` and ``collectionRegex`` each supports an ``options`` field,
92+
``databaseRegex`` and ``collectionsRegex`` each supports an ``options`` field,
9393
which you can use to configure regular expression options.
9494
Internally, ``mongosync`` passes the filter and options to the
9595
:query:`$regex` operator. Options available to that operator can be used
@@ -103,7 +103,7 @@ that begin start with the ``accounts_`` string:
103103
"includeNamespaces": [
104104
{
105105
"database": "sales",
106-
"collectionRegex": {
106+
"collectionsRegex": {
107107
"pattern": "^accounts_.+?$",
108108
"options": "ms"
109109
}

source/release-notes/1.6.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Regular Expression Filters
4949

5050
Both inclusion and exclusion filters in :ref:`c2c-filtered-sync` now
5151
support matching databases and collections using Regular Expressions
52-
with the ``databaseRegex`` and ``collectionRegex`` fields.
52+
with the ``databaseRegex`` and ``collectionsRegex`` fields.
5353

5454
For more information, see :ref:`c2c-filter-regex`.
5555

0 commit comments

Comments
 (0)