mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-09-29 01:03:15 +08:00
- tweaked regex to better scan headers (thanks mjaygo!)
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@76 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
This commit is contained in:
@ -102,7 +102,7 @@ class UnityTestRunnerGenerator
|
||||
input_file.rewind
|
||||
includes = []
|
||||
input_file.readlines.each do |line|
|
||||
scan_results = line.scan(/^#include\s+\"\s*(.+)\.h\s*\"/)
|
||||
scan_results = line.scan(/^\s*#include\s+\"\s*(.+)\.[hH]\s*\"/)
|
||||
includes << scan_results[0][0] if (scan_results.size > 0)
|
||||
end
|
||||
return includes
|
||||
|
Reference in New Issue
Block a user