     searchText      = @searchText
 
     unless isRegExp
-      splitText  = searchText.split "\\n"
-      splitText  = splitText.map @grepEscapeRegExp
-      searchText = splitText.join "\\n"
+      splitText     = searchText.split '\\n'
+      splitText     = splitText.map @grepEscapeRegExp
+      searchText    = splitText.join '\\n'
 
-    searchText   = searchText.replace (new RegExp "\\\'", "g"), "'\\''"
-    searchText   = searchText.replace /-/g, "\\-"
+    searchText      = searchText.replace (new RegExp "\\\'", 'g'), "'\\''"
+    searchText      = searchText.replace /-/g, '\\-'
 
-    flags        = [
+    flags           = [
       '-s'                           # Silent mode
       '-r'                           # Recursively search subdirectories listed.
       '-n'                           # Each output line is preceded by its relative line number in the file

      numberOfSearchedFiles : 0

    formatted = lines
    .map (line) ->
      # Remove erronous whitespace
      return line.trimLeft()
    .filter (line) ->
      # Skip lines that aren't one of these
      return mainLineRegex.test(line) or contextLineRegex.test(line)
    .map (line) ->
      # Get the matches

      @formatOutput res.stdout, @bound 'createResultsView'

  escapeRegExp: (str) ->
    str.replace /([.*+?\^${}()|\[\]\/\\])/g, '\\$1'

  escapeShell: (str) ->
    str.replace /([\\"'`$\s\(\)<>])/g, '\\$1'

  grepEscapeRegExp: (str) ->
    str.replace /[[\]{}()*+?.,\\^$|#\s"']/g, '\\$&'

  formatOutput: (output, callback = noop) ->
    # Regexes
