summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sample/dir.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/dir.rb b/sample/dir.rb
index 44733c2cf4..0c55078973 100644
--- a/sample/dir.rb
+++ b/sample/dir.rb
@@ -3,7 +3,7 @@
dirp = Dir.open(".")
for f in dirp
case f
- when /\A\./, /~\z/, /\.o/
+ when /\A\./, /~\z/, /\.o\z/
# do not print
else
print f, "\n"