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 | fb979b4532b1327044f49ed46cbb9b425757df68 (patch) | |
tree | c1911c3219edf1d3098da35123a07d5844c3ac46 /lib/drb | |
parent | 873d62b1e244aac425e870060613cc337b58fd8f (diff) | |
download | ruby-fb979b4532b1327044f49ed46cbb9b425757df68.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/drb')
-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 |