fix regexp typo

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4526 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jeremy Kemper
2006-06-30 06:51:22 +00:00
parent d0526ede40
commit faba7e9372

View File

@@ -348,7 +348,7 @@ module ActionMailer #:nodoc:
templates.each do |path|
# TODO: don't hardcode rhtml|rxml
basename = File.basename(path)
next unless md = /^([^\.]+)\.([^\.]+\.[^\+]+)\.(rhtml|rxml)$/.match(basename)
next unless md = /^([^\.]+)\.([^\.]+\.[^\.]+)\.(rhtml|rxml)$/.match(basename)
template_name = basename
content_type = md.captures[1].gsub('.', '/')
@parts << Part.new(:content_type => content_type,