Skip to content
This repository was archived by the owner on Nov 15, 2017. It is now read-only.

Commit add603e

Browse files
committed
Bug fix
1 parent 864091a commit add603e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

css_mathches.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ module Jekyll::CSSMatchesFilter
44
def css_matches input, selector
55
return false unless input && selector
66

7-
doc = Nokogiri::HTML input { |config| config.nonet }
7+
doc = Nokogiri::HTML(input) { |config| config.nonet }
88

9-
doc ? !doc.css(selector).empty?: false
9+
doc ? !doc.css(selector).empty? : false
1010
end
1111
end
1212

xpath_matches.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ module Jekyll::XPathMatchesFilter
44
def xpath_matches input, selector
55
return false unless input && selector
66

7-
doc = Nokogiri::HTML input { |config| config.nonet }
7+
doc = Nokogiri::HTML(input) { |config| config.nonet }
88

9-
doc ? !doc.xpath(selector).empty?: false
9+
doc ? !doc.xpath(selector).empty? : false
1010
end
1111
end
1212

0 commit comments

Comments
 (0)