summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-02-17 08:29:09 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-02-17 08:29:09 +0000
commitbc5ff99474cc1ca67c14471b8c95244542740ef8 (patch)
tree84917adb6e715184675c69737df07cdbdaeb0814 /lib
parente9bdbbdb755ee451302c3d834ad20f77d80754f0 (diff)
2000-02-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_4@620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/find.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/find.rb b/lib/find.rb
index 469dca80aa..9fb012902c 100644
--- a/lib/find.rb
+++ b/lib/find.rb
@@ -16,7 +16,7 @@ module Find
d = Dir.open(file)
begin
for f in d
- next if f =~ /^\.\.?$/
+ next if f =~ /\A\.\.?\z/
if File::ALT_SEPARATOR and file =~ /^([\/\\]|[A-Za-z]:[\/\\]?)$/ then
f = file + f
elsif file == "/" then