Permalink
Browse files

Fixing redundant escape in regex

  • Loading branch information...
1 parent ad8dc5a commit 3b584aee950f5a602a4acfbc15f9bc1530716dc0 @mikel mikel committed Jan 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionmailer/lib/action_mailer/old_api.rb
@@ -247,7 +247,7 @@ def parse_content_type(defaults=nil)
[ nil, {} ]
else
ctype, *attrs = @content_type.split(/;\s*/)
- attrs = Hash[attrs.map { |attr| attr.split(/\=/, 2) }]
+ attrs = Hash[attrs.map { |attr| attr.split(/=/, 2) }]
[ctype, {"charset" => @charset}.merge!(attrs)]
end
end

0 comments on commit 3b584ae

Please sign in to comment.