- tweaked regex for searching includes (thanks mjaygo!)

git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@170 bf332499-1b4d-0410-844d-d2d48d5cc64c
This commit is contained in:
mvandervoord
2010-06-23 14:17:55 +00:00
parent e91f739e43
commit 4de681db99
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ module RakefileHelpers
includes = []
lines = File.readlines(filename)
lines.each do |line|
m = line.match(/#include \"(.*)\"/)
m = line.match(/^\s*#include\s+\"\s*(.+\.[hH])\s*\"/)
if not m.nil?
includes << m[1]
end
+1 -1
View File
@@ -45,7 +45,7 @@ module RakefileHelpers
includes = []
lines = File.readlines(filename)
lines.each do |line|
m = line.match /#include \"(.*)\"/
m = line.match(/^\s*#include\s+\"\s*(.+\.[hH])\s*\"/)
if not m.nil?
includes << m[1]
end