aboutsummaryrefslogtreecommitdiffstats
path: root/lib/find.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-02-17 07:11:22 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-02-17 07:11:22 +0000
commit96b40dff450df701200ea5edceb07f2ed847e3fd (patch)
treea2c90999001ebcb8fd2fd67ffb3d5911a8e98f81 /lib/find.rb
parent7dd3853eac98396d3b5abee16d7f680d941eae82 (diff)
downloadruby-96b40dff450df701200ea5edceb07f2ed847e3fd.tar.gz
2000-02-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/find.rb')
-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