Skip to content

Commit

Permalink
more predictable network blacklist behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Nakilon committed Sep 23, 2023
1 parent 558fa60 commit 60a8ae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ferrum/network/intercepted_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def navigation_request?
end

def match?(regexp)
!!url.match(regexp)
not not regexp === url
end

def respond(**options)
Expand Down

0 comments on commit 60a8ae2

Please sign in to comment.