summaryrefslogtreecommitdiff
path: root/lib/abbrev.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/abbrev.rb')
-rw-r--r--lib/abbrev.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/abbrev.rb b/lib/abbrev.rb
index 1aae0e1fcf..443ab6d8f1 100644
--- a/lib/abbrev.rb
+++ b/lib/abbrev.rb
@@ -69,7 +69,7 @@ module Abbrev
seen = Hash.new(0)
if pattern.is_a?(String)
- pattern = /^#{Regexp.quote(pattern)}/ # regard as a prefix
+ pattern = /\A#{Regexp.quote(pattern)}/ # regard as a prefix
end
words.each do |word|