diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-07 13:26:12 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-07 13:26:12 +0000 |
commit | d67ced620b4cb91cab6a8f63e429a5f70944f42b (patch) | |
tree | c1911c3219edf1d3098da35123a07d5844c3ac46 /lib | |
parent | c656d6a42d9008be991f80a06e8a270b69252199 (diff) | |
download | ruby-d67ced620b4cb91cab6a8f63e429a5f70944f42b.tar.gz |
Use \A and \z to match whole string
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/drb/acl.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/drb/acl.rb b/lib/drb/acl.rb index 520b7df71d..7b50644fe4 100644 --- a/lib/drb/acl.rb +++ b/lib/drb/acl.rb @@ -82,8 +82,7 @@ class ACL # Creates a Regexp to match an address. def dot_pat(str) - exp = "^" + dot_pat_str(str) + "$" - Regexp.new(exp) + /\A#{dot_pat_str(str)}\z/ end public |