Skip to content

Commit

Permalink
Fix keyword parameter warnings in Ruby 2.7.0-dev
Browse files Browse the repository at this point in the history
See https://bugs.ruby-lang.org/issues/14183

Nokogumbo itself still causes warnings, but we can't fix that here.
  • Loading branch information
rgrove committed Sep 7, 2019
1 parent d692087 commit 18b872e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sanitize.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def initialize(config = {})
def document(html)
return '' unless html

doc = Nokogiri::HTML5.parse(preprocess(html), @config[:parser_options])
doc = Nokogiri::HTML5.parse(preprocess(html), **@config[:parser_options])
node!(doc)
to_html(doc)
end
Expand All @@ -120,7 +120,7 @@ def document(html)
def fragment(html)
return '' unless html

frag = Nokogiri::HTML5.fragment(preprocess(html), @config[:parser_options])
frag = Nokogiri::HTML5.fragment(preprocess(html), **@config[:parser_options])
node!(frag)
to_html(frag)
end
Expand Down

0 comments on commit 18b872e

Please sign in to comment.