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:
parent
e5f65ccdfc
commit
54fa362ee2
1 changed files with 10 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue