lib/xmlsimple.rb in xml-simple-1.0.15 vs lib/xmlsimple.rb in xml-simple-1.0.16
- old
+ new
@@ -716,10 +716,10 @@
#
# element::
# Document element to be checked.
def has_mixed_content?(element)
if element.has_text? && element.has_elements?
- return true if element.texts.join('') !~ /^\s*$/s
+ return true if element.texts.join('') !~ /^\s*$/
end
false
end
# Called when a variable definition is encountered in the XML.