lib/boxcars/x_node.rb in boxcars-0.4.5 vs lib/boxcars/x_node.rb in boxcars-0.4.6

- old
+ new

@@ -27,9 +27,10 @@ end end def self.from_xml(xml) xml = xml[xml.index("<")..-1] unless xml.start_with?("<") + xml = xml[0..xml.rindex(">")] unless xml.end_with?(">") doc = Nokogiri::XML.parse(xml) if doc.errors.any? Boxcars.debug("XML: #{xml}", :yellow) # rubocop:disable Lint/Debugger debugger if ENV.fetch("DEBUG_XML", false)