lib/percy/capybara/loaders/native_loader.rb in percy-capybara-2.5.0 vs lib/percy/capybara/loaders/native_loader.rb in percy-capybara-2.5.1

- old
+ new

@@ -7,10 +7,10 @@ module Loaders # Resource loader that uses the native Capybara browser interface to discover resources. # This loader uses JavaScript to discover page resources, so specs must be tagged with # "js: true" because the default Rack::Test driver does not support executing JavaScript. class NativeLoader < BaseLoader # rubocop:disable ClassLength - PATH_REGEX = /\A\/[^\\s\"']*/ + PATH_REGEX = %r{\A/[^\\s\"']*} DATA_URL_REGEX = /\Adata:/ LOCAL_HOSTNAMES = [ 'localhost', '127.0.0.1', '0.0.0.0',