Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bug fix for wild insensitive search

  • Loading branch information...
commit 31d22b6516746976e59a4d9e27ef94a8c642aa6d 1 parent b527b7f
@daitangio authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/code_zauker/cli.rb
View
3  lib/code_zauker/cli.rb
@@ -2,6 +2,7 @@ module CodeZauker
class CliUtil
+ # Create a regexp to do a case insensitive wild search used by grep
def doWildSearch(term,fileScanner)
fileGroup=fileScanner.wsearch(term)
# Make a simple regexp from the wild stuff...
@@ -10,7 +11,7 @@ def doWildSearch(term,fileScanner)
finalRegexp= finalRegexp+Regexp.escape(term)+".*"
end
return {
- :regexp=>finalRegexp,
+ :regexp=>/#{finalRegexp}/i,
:files => fileGroup
}
Please sign in to comment.
Something went wrong with that request. Please try again.