1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

minor style fix

This commit is contained in:
Thomas Walpole 2022-07-29 14:12:44 -07:00
parent e5f65ccdfc
commit 54fa362ee2

View file

@ -50,16 +50,16 @@ module Capybara
def directive_nonces(headers)
headers.fetch('Content-Security-Policy', '')
.split(';')
.map(&:split)
.to_h do |s|
[
s[0], s[1..].filter_map do |value|
/^'nonce-(?<nonce>.+)'/ =~ value
nonce
end[0]
]
end
.split(';')
.map(&:split)
.to_h do |s|
[
s[0], s[1..].filter_map do |value|
/^'nonce-(?<nonce>.+)'/ =~ value
nonce
end[0]
]
end
end
DISABLE_CSS_MARKUP_TEMPLATE = <<~CSS