Skip to content

Commit 785a95e

Browse files
authored
docs: Mention partial vs. exact match in ignoreErrors docs (#1088)
1 parent 742bf2f commit 785a95e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/config.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,14 @@ Those configuration options are documented below:
102102
something other than your application, or errors that you're
103103
completely not interested in. `ignoreErrors` is a list of these
104104
messages to be filtered out before being sent to Sentry as either
105-
regular expressions or strings.
105+
regular expressions or strings. When using strings, they'll partially
106+
match the messages, so if you need to achieve an exact match, use
107+
RegExp patterns instead.
106108

107109
.. code-block:: javascript
108110
109111
{
110-
ignoreErrors: ['fb_xd_fragment']
112+
ignoreErrors: ['fb_xd_fragment', /^Exact Match Message$/]
111113
}
112114
113115
.. describe:: ignoreUrls

0 commit comments

Comments
 (0)