Skip to content

Commit

Permalink
Check to see if failure is related to nested regex's
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandervoord committed Jan 15, 2025
1 parent b2c3c4e commit 912ee94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ceedling/preprocessinator_extractor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ def extract_test_directive_macro_calls(file_contents)
# Look for TEST_SOURCE_FILE("...") and TEST_INCLUDE_PATH("...") in a string (i.e. a file's contents as a string)

regexes = [
/(#{PATTERNS::TEST_SOURCE_FILE})/,
/(#{PATTERNS::TEST_INCLUDE_PATH})/
/TEST_SOURCE_FILE\(\s*\"\s*[^"]+\s*\"\s*\)/,
/TEST_INCLUDE_PATH\(\s*\"\s*[^"]+\s*\"\s*\)/
]

return extract_tokens_by_regex_list( file_contents, *regexes ).map(&:first)
return extract_tokens_by_regex_list( file_contents, *regexes )
end


Expand Down

0 comments on commit 912ee94

Please sign in to comment.