Skip to content

Commit

Permalink
Resolves #43. Capturing subpatterns are treated as non-capturing.
Browse files Browse the repository at this point in the history
* bug/ISSUE43-Subpatterns:
  Treating capturing subpatterns as non-capturing for now.
  • Loading branch information
gvansickle committed Dec 27, 2015
2 parents 2068dd0 + 7bf3e3c commit 4a68883
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/FileScanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ FileScanner::FileScanner(sync_queue<std::string> &in_queue,
int error_offset;
int options = 0;

// For now, we won't support capturing. () will be treated as (?:).
options = PCRE_NO_AUTO_CAPTURE;

if(ignore_case)
{
// Ignore case while matching.
Expand Down

0 comments on commit 4a68883

Please sign in to comment.