Skip to content

Commit

Permalink
Merge pull request #1023 from henrik/patch-2
Browse files Browse the repository at this point in the history
README: Escape regex special chars in example
  • Loading branch information
bblimke committed Aug 19, 2023
2 parents 877fccf + b66285b commit dd084eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ RestClient.get('www.example.org:8080', '/') # ===> Allowed
With a `Regexp` matching the URI:

```ruby
WebMock.disable_net_connect!(allow: %r{ample.org/foo})
WebMock.disable_net_connect!(allow: %r{ample\.org/foo})

RestClient.get('www.example.org', '/foo/bar') # ===> Allowed
RestClient.get('sample.org', '/foo') # ===> Allowed
Expand Down

0 comments on commit dd084eb

Please sign in to comment.