Skip to content

Commit 4f2df6a

Browse files
committed
Docs: Double escape regexp backslashes
Backslashes in regular expressions inside parsed-literal blocks need to be double escaped in order to appear in the output.
1 parent 4f730c5 commit 4f2df6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/config/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,13 @@ Putting it all together
137137
var options = {
138138
logger: 'my-logger',
139139
whitelistUrls: [
140-
/disqus\.com/, /getsentry\.com/
140+
/disqus\\.com/, /getsentry\\.com/
141141
],
142142
ignoreErrors: [
143143
'fb_xd_fragment', /ReferenceError:.*/
144144
],
145145
includePaths: [
146-
/https?:\/\/(www\.)?getsentry\.com/
146+
/https?:\\/\\/(www\\.)?getsentry\\.com/
147147
]
148148
};
149149
Raven.config('https://public@app.getsentry.com/1', options).install();

0 commit comments

Comments
 (0)