diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-01 13:30:08 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-01 13:30:08 +0000 |
commit | 4058e0bbefcc0c82b725b7dba0ac00de405b8d01 (patch) | |
tree | 14b80106549cee7003c56ccecac4027a24ad17d8 /lib/rss/xml-stylesheet.rb | |
parent | 02acbbe1a2404a4be5ee998a907d32b2493b9e43 (diff) | |
download | ruby-4058e0bbefcc0c82b725b7dba0ac00de405b8d01.tar.gz ruby-4058e0bbefcc0c82b725b7dba0ac00de405b8d01.tar.xz ruby-4058e0bbefcc0c82b725b7dba0ac00de405b8d01.zip |
* lib/rss/maker/base.rb: changed xml-stylesheet's API of RSS Maker
to like item's one.
* lib/rss/xml-stylesheet.rb (RSS::XMLStyleSheet#guess_type): fixed
regular expression bug.
* test/rss/test_maker_xml-stylesheet.rb: updated tests for xml-stylesheet.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/xml-stylesheet.rb')
-rw-r--r-- | lib/rss/xml-stylesheet.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rss/xml-stylesheet.rb b/lib/rss/xml-stylesheet.rb index 726899ed8..c51c0dc71 100644 --- a/lib/rss/xml-stylesheet.rb +++ b/lib/rss/xml-stylesheet.rb @@ -86,7 +86,7 @@ module RSS private def guess_type(filename) - /\.([^.]+)/ =~ filename + /\.([^.]+)$/ =~ filename GUESS_TABLE[$1] end |