lib/textbringer/commands/isearch.rb in textbringer-0.3.1 vs lib/textbringer/commands/isearch.rb in textbringer-0.3.2
- old
+ new
@@ -116,10 +116,10 @@
end
end
def isearch_search
forward = ISEARCH_STATUS[:forward]
- options = if /\A[A-Z]/ =~ ISEARCH_STATUS[:string]
+ options = if /\A[A-Z]/.match?(ISEARCH_STATUS[:string])
nil
else
Regexp::IGNORECASE
end
re = Regexp.new(Regexp.quote(ISEARCH_STATUS[:string]), options)