summaryrefslogtreecommitdiff
path: root/lib/drb/acl.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/drb/acl.rb')
-rw-r--r--lib/drb/acl.rb3
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