Skip to content

Commit b3b0d36

Browse files
Docs: Update url allow/block instructions (#265)
Currently, if you use a string to mark an allowed or blocked domain/url you get a noisy deprecation warning about the use of strings for these parameters. This change updates the instructions to specify the use of regexes instead which conforms to what Ferrum's code seems to expect (`pattern`) and silences the warning.
1 parent 9e2788f commit b3b0d36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ end
6161
`Cuprite`-specific options are:
6262

6363
* options `Hash`
64-
* `:url_blacklist` (Array) - array of strings to match against requested URLs
65-
* `:url_whitelist` (Array) - array of strings to match against requested URLs
64+
* `:url_blacklist` (Array) - array of regexes to match against requested URLs
65+
* `:url_whitelist` (Array) - array of regexes to match against requested URLs
6666

6767

6868
## Debugging

0 commit comments

Comments
 (0)