diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-05-26 12:20:27 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-05-26 12:20:27 +0000 |
commit | 7a5eaffefdfed01b061460a3a7f8d8d55dcb761a (patch) | |
tree | 722838a915a7d2457dd381e8aa712a3cb6ba0231 /file.c | |
parent | 0175825cfca3866a7a729a88f90bdf37e4fee54f (diff) |
merge revision(s) 22392:22394:
* file.c (rb_file_s_extname): fix for spaces before extention.
[ruby-dev:38044]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@23585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3035,7 +3035,7 @@ rb_file_s_extname(klass, fname) p = last; break; } - if (*last == '.') e = dot; + if (*last == '.' || dot > last) e = dot; continue; #else e = p; /* get the last dot of the last component */ |