summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index 3e4db29876..50d2d3f99f 100644
--- a/file.c
+++ b/file.c
@@ -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 */