lib/webgen/sourcehandler/fragment.rb in gettalong-webgen-0.5.7.20090227 vs lib/webgen/sourcehandler/fragment.rb in gettalong-webgen-0.5.8.20090507
- old
+ new
@@ -8,10 +8,10 @@
include Base
include Webgen::WebsiteAccess
HTML_HEADER_REGEXP = /<h([123456])(?:>|\s([^>]*)>)(.*?)<\/h\1\s*>/i
- HTML_ATTR_REGEXP = /\s*(\w+)\s*=\s*('|")([^\2]+)\2\s*/
+ HTML_ATTR_REGEXP = /\s*(\w+)\s*=\s*('|")(.+?)\2\s*/
# Parse the string +content+ for headers +h1+, ..., +h6+ and return the found, nested sections.
#
# Only those headers are used which have an +id+ attribute set. The method returns a list of
# arrays with entries <tt>level, id, title, sub sections</tt> where <tt>sub sections</tt> is