lib/onebox/engine/pubmed_onebox.rb in onebox-1.5.21 vs lib/onebox/engine/pubmed_onebox.rb in onebox-1.5.22

- old
+ new

@@ -2,10 +2,10 @@ module Engine class PubmedOnebox include Engine include LayoutSupport - matches_regexp Regexp.new("^http(?:s)?://(?:(?:\\w)+\\.)?(www.ncbi.nlm.nih)\\.gov(?:/)?/pubmed/") + matches_regexp Regexp.new("^https?://(?:(?:\\w)+\\.)?(www.ncbi.nlm.nih)\\.gov(?:/)?/pubmed/") private def get_xml doc = Nokogiri::XML(open(URI.join(@url, "?report=xml&format=text")))