mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* file.c (rb_file_s_extname): preceding dots are not a part of
extension. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9320b5c65f
commit
605a46dd05
2 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,9 @@
|
|||
Sat Sep 27 03:57:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Sat Sep 27 04:28:41 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* file.c (rmext): preceding dots are not a part of extension.
|
||||
|
||||
* file.c (rb_file_s_extname): ditto.
|
||||
|
||||
Sat Sep 27 03:15:51 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* vm.c (vm_jump_tag_but_local_jump): exc is not used if val is nil.
|
||||
|
|
1
file.c
1
file.c
|
@ -3144,6 +3144,7 @@ rb_file_s_extname(VALUE klass, VALUE fname)
|
|||
name = ++p;
|
||||
|
||||
e = 0;
|
||||
while (*p && *p == '.') p++;
|
||||
while (*p) {
|
||||
if (*p == '.' || istrailinggabage(*p)) {
|
||||
#if USE_NTFS
|
||||
|
|
Loading…
Reference in a new issue