Skip to content

Commit

Permalink
ignore comments
Browse files Browse the repository at this point in the history
  • Loading branch information
greatseth committed Feb 5, 2010
1 parent 685d28e commit 8ea7166
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/application_checker.rb
Expand Up @@ -185,11 +185,16 @@ def grep_for(text, where = "./")
# If they're on Windows, they probably don't have grep.
@probably_has_grep ||= (Config::CONFIG['host_os'].downcase =~ /mswin|windows|mingw/).nil?

if @probably_has_grep
lines = if @probably_has_grep
find_with_grep(text, base_path + where)
else
find_with_rak(text, base_path + where)
end

# ignore comments
lines.gsub! /^\s*#.+$/m, ""

lines
end

# Sets a base path for finding files; mostly for testing
Expand Down

0 comments on commit 8ea7166

Please sign in to comment.