diff --git a/lib/application_checker.rb b/lib/application_checker.rb index e058702..695e29d 100644 --- a/lib/application_checker.rb +++ b/lib/application_checker.rb @@ -201,7 +201,7 @@ module Rails def find_with_grep(text, where) value = "" - Open3.popen3("grep -r '#{text}' #{where}") do |stdin, stdout, stderr| + Open3.popen3("grep -r '#{Regexp.escape(text)}' #{where}") do |stdin, stdout, stderr| value = stdout.read end @@ -291,4 +291,4 @@ module Rails end end end -end \ No newline at end of file +end