Skip to content

Commit

Permalink
This is an awfully simple REGEX fix. If you are annoyed with RSpec/Cu…
Browse files Browse the repository at this point in the history
…cumber warnings with Ruby 1.9.2, this should fix your problem
  • Loading branch information
katz committed Oct 10, 2010
1 parent ef0d5db commit e0cb812
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/simple-rss.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def clean_tag(tag)
end

def unescape(content)
if content =~ /([^-_.!~*'()a-zA-Z\d;\/?:@&=+$,\[\]]%)/un then
if content =~ /([^-_.!~*'()a-zA-Z\d;\/?:@&=+$,\[\]]%)/u then
CGI.unescape(content).gsub(/(<!\[CDATA\[|\]\]>)/u,'').strip
else
content.gsub(/(<!\[CDATA\[|\]\]>)/u,'').strip
Expand Down

0 comments on commit e0cb812

Please sign in to comment.