Suppress warnings on old version of Ruby

This commit is contained in:
Junegunn Choi committed 2013-12-11 01:03:47 +09:00
1 parent e1bc4b983e
commit 1c89994c94
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -830,7 +830,7 @@ class FZF
when ''
nil
when /^\^(.*)\$$/
Regexp.new('^' << sanitize(Regexp.escape $1) << '$', rxflag)
Regexp.new('^' << sanitize(Regexp.escape($1)) << '$', rxflag)
when /^'/
w.length > 1 ?
Regexp.new(sanitize(Regexp.escape(w[1..-1])), rxflag) : nil