Skip to content

Commit fd2dcf8

Browse files
committed
Updated regular expression example for tips
Fixes #226
1 parent 944d9f5 commit fd2dcf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tips/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ If your scripts are loaded from ``cdn.example.com`` and your site is ``example.c
1212
.. code-block:: javascript
1313
1414
whitelistUrls: [
15-
/example\.com/
15+
/https?:\/\/((cdn|www)\.)?example\.com/
1616
]
1717
1818
Since this accepts a regular expression, that would catch anything \*.example.com or example.com exactly. See also: :ref:`Config: whitelistUrls<config-whitelist-urls>`.

0 commit comments

Comments
 (0)