diff --git a/lib/rss/parser.rb b/lib/rss/parser.rb index e1bcfc5..1be4caa 100644 --- a/lib/rss/parser.rb +++ b/lib/rss/parser.rb @@ -391,7 +391,7 @@ def _ns(ns, prefix) ns.fetch(prefix, "") end - CONTENT_PATTERN = /\s*([^=]+)=(["'])([^\2]+?)\2/ + CONTENT_PATTERN = /\G\s*([^=]+)=(["'])([^\2]+?)\2/ # Extract the first name="value" pair from content. # Works with single quotes according to the constant # CONTENT_PATTERN. Return a Hash.