         accu[fileName] = []
 
       # Add line to list of lines found for this filename
-      accu[fileName].push { lineNumber, line, occurence: MAIN_LINE.test(matches[0]) }
+      accu[fileName].push { lineNumber, line, occurence: mainLineRegex.test(matches[0]) }
 
       # Increment matches
       stats.numberOfMatches += 1

      return line.trimLeft()
    .filter (line) ->
      # Skip lines that aren't one of these
      return MAIN_LINE.test(line) or CONTEXT_LINE.test(line)
    .map (line) ->
      # Get the matches
      return line.match(MAIN_LINE) or line.match(CONTEXT_LINE)
    .reduce( (accu, matches) ->
      # Extract matches
      [fileName, lineNumber, line] = [matches[1], parseInt(matches[2], 10), matches[3]]

    stats.numberOfSearchedFiles = Object.keys(formatted).length

    # No results
    if stats.numberOfMatches is 0
      return @showWarning 'No results found, refine your search.'

    # Send results
