summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-02 11:26:28 (GMT)
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-02 11:26:28 (GMT)
commit2430822b96a399ce5983b26637f597019690eb3e (patch)
tree38cf362917ab7087e1812726107652fa3352c855 /sample
parent6519aba3ba013974d63fbf5bf25b90279f412a90 (diff)
Use `\A` and `\z` instead of `^` and `$` [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
-rw-r--r--sample/dir.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/dir.rb b/sample/dir.rb
index b627383..44733c2 100644
--- a/sample/dir.rb
+++ b/sample/dir.rb
@@ -3,7 +3,7 @@
dirp = Dir.open(".")
for f in dirp
case f
- when /^\./, /~$/, /\.o/
+ when /\A\./, /~\z/, /\.o/
# do not print
else
print f, "\n"