Permalink
Browse files

Bug fix for wild insensitive search

  • Loading branch information...
1 parent b527b7f commit 31d22b6516746976e59a4d9e27ef94a8c642aa6d @daitangio committed May 25, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 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
}

0 comments on commit 31d22b6

Please sign in to comment.