mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* file.c (rb_file_s_extname): fix for spaces before extention.
[ruby-dev:38044] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
656e005ac0
commit
5f9342fa8a
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Wed Feb 18 12:35:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* file.c (rb_file_s_extname): fix for spaces before extention.
|
||||||
|
[ruby-dev:38044]
|
||||||
|
|
||||||
Wed Feb 18 12:00:58 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Wed Feb 18 12:00:58 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* file.c (file_expand_path): suppress a warning. named magic
|
* file.c (file_expand_path): suppress a warning. named magic
|
||||||
|
|
2
file.c
2
file.c
|
@ -3185,7 +3185,7 @@ rb_file_s_extname(VALUE klass, VALUE fname)
|
||||||
p = last;
|
p = last;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (*last == '.') e = dot;
|
if (*last == '.' || dot > last) e = dot;
|
||||||
continue;
|
continue;
|
||||||
#else
|
#else
|
||||||
e = p; /* get the last dot of the last component */
|
e = p; /* get the last dot of the last component */
|
||||||
|
|
Loading…
Reference in a new issue