* SolutionParser.cs (projectRegex): Use '\s' to match whitespace.
authorAnkit Jain <radical@corewars.org>
Fri, 20 Feb 2009 09:43:42 +0000 (09:43 -0000)
committerAnkit Jain <radical@corewars.org>
Fri, 20 Feb 2009 09:43:42 +0000 (09:43 -0000)
svn path=/trunk/mcs/; revision=127518

mcs/tools/xbuild/ChangeLog
mcs/tools/xbuild/SolutionParser.cs

index 8f7392b7a0edfaa831434643276bf879d97912df..9ec02e8e6c655dcc1f678d8be340f5627430812e 100644 (file)
@@ -1,3 +1,7 @@
+2009-02-20  Ankit Jain  <jankit@novell.com>
+
+       * SolutionParser.cs (projectRegex): Use '\s' to match whitespace.
+
 2009-02-19  Jonathan Chambers  <joncham@gmail.com>
 
        * xbuild.csproj: Add.
index c16c397c1cdde69d3cfc28f023ed21341bee5228..328b27edb46643340e0082acd9ac1294d7b7a81d 100644 (file)
@@ -73,7 +73,7 @@ namespace Mono.XBuild.CommandLine {
 
                static string guidExpression = "{[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}}";
 
-               static Regex projectRegex = new Regex ("Project\\(\"(" + guidExpression + ")\"\\) = \"(.*?)\", \"(.*?)\", \"(" + guidExpression + ")\"(.*?)((.*?)ProjectSection\\((.*?)\\) = (.*?)EndProjectSection(.*?))*(.*?)EndProject?", RegexOptions.Singleline);
+               static Regex projectRegex = new Regex ("Project\\(\"(" + guidExpression + ")\"\\) = \"(.*?)\", \"(.*?)\", \"(" + guidExpression + ")\"(\\s*?)((\\s*?)ProjectSection\\((.*?)\\) = (.*?)EndProjectSection(\\s*?))*(\\s*?)EndProject?", RegexOptions.Singleline);
                static Regex projectDependenciesRegex = new Regex ("ProjectSection\\((.*?)\\) = \\w*(.*?)EndProjectSection", RegexOptions.Singleline);
                static Regex projectDependencyRegex = new Regex ("\\s*(" + guidExpression + ") = (" + guidExpression + ")");