Fixed a pattern in regex matching

This commit is contained in:
Rick Falkvinge
2016-09-27 12:17:43 +02:00
parent bcc9d6abc0
commit b72d6b060b
2 changed files with 1 additions and 1 deletions
Binary file not shown.
+1 -1
View File
@@ -33,7 +33,7 @@ namespace XBuildLog2Xml
};
const string projectStartRegex = "Building target \"Compile\" in project \"[a-zA-Z/]+/(?<projectName>[A-Za-z0-9\\-]+)\\.csproj\"";
const string messageRegex = "(?<fileName>[A-Za-z\\-_0-9]+).cs\\((?<lineNumber>[0-9]+),[0-9]+\\): (?<messageType>[a-z]+) CS(?<messageCode>[0-9]{4}): (?<messageText>.+)";
const string messageRegex = "(?<fileName>[A-Za-z\\-_0-9\\.]+).cs\\((?<lineNumber>[0-9]+),[0-9]+\\): (?<messageType>[a-z]+) CS(?<messageCode>[0-9]{4}): (?<messageText>.+)";
Regex regexProject = new Regex (projectStartRegex, RegexOptions.Compiled);
Regex regexMessage = new Regex (messageRegex, RegexOptions.Compiled);