diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-02-17 07:11:22 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-02-17 07:11:22 +0000 |
| commit | e83d532ff8b7d3c6eeaee3931d8b00df19c5f538 (patch) | |
| tree | a2c90999001ebcb8fd2fd67ffb3d5911a8e98f81 /lib | |
| parent | 154193050b7878e290f9f166279c18e01ef44ad6 (diff) | |
| download | ruby-e83d532ff8b7d3c6eeaee3931d8b00df19c5f538.tar.gz ruby-e83d532ff8b7d3c6eeaee3931d8b00df19c5f538.tar.xz ruby-e83d532ff8b7d3c6eeaee3931d8b00df19c5f538.zip | |
2000-02-17
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/find.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/find.rb b/lib/find.rb index 469dca80a..9fb012902 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 |
