Created
November 20, 2008 04:55
-
-
Save miketierney/26943 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if options[:fast] | |
options[:ignorecase] ? pattern = Regexp.new(Regexp.escape(ARGV.shift), 1) : pattern = Regexp.new(Regexp.escape(ARGV.shift)) | |
elsif options[:ignorecase] | |
pattern = Regexp.new(ARGV.shift, 1) | |
else | |
pattern = Regexp.new(ARGV.shift) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment