@@ -14,9 +14,37 @@ public class PvcsHistoryParser : IHistoryParser
1414 {
1515 private static string RegexNewLine = Regex . Escape ( Environment . NewLine ) ;
1616
17- private static Regex _searchRegEx = new Regex ( @"(?<Archive>Archive:\s+.*?" + RegexNewLine + @"(.|\s)*?(={35}(" + RegexNewLine + @"|$)))" , RegexOptions . Compiled | RegexOptions . IgnorePatternWhitespace | RegexOptions . ExplicitCapture | RegexOptions . IgnoreCase ) ;
18- private static Regex _archiveRegEx = new Regex ( @"Archive:\s+(?<ArchiveName>.*?)\nWorkfile:\s+(?<Filename>.*?)\nArchive\screated:\s+(?<CreatedDate>.*?)" + RegexNewLine + @"(.|\s)*?-{35}" + RegexNewLine + @"(?<Revision>Rev\s\d+(\.\d+)*" + RegexNewLine + @"(.*" + RegexNewLine + @")*?Author\sid:.*?" + RegexNewLine + @"((?!(={35}|-{35}))(.|\s)*?" + RegexNewLine + @")?(-{35}|={35})(" + RegexNewLine + @"|$))+" , RegexOptions . Compiled | RegexOptions . IgnorePatternWhitespace | RegexOptions . ExplicitCapture | RegexOptions . IgnoreCase ) ;
19- private static Regex _revisionRegEx = new Regex ( @"Rev\s(?<Version>\d(\.\d+)*)" + RegexNewLine + @"(.*?" + RegexNewLine + @")?Checked\sin:\s+(?<CheckIn>.*?)" + RegexNewLine + @"(.*?" + RegexNewLine + @")?Last\smodified:\s+(?<PreviousModification>.*?)" + RegexNewLine + @"(.*?" + RegexNewLine + @")?Author\sid:\s+(?<Author>.*?)\s.*?" + RegexNewLine + @"(Branches:\s+.*?" + RegexNewLine + @")?(?<Comment>(((?!(={35}|-{35}))(.|\s)*?)" + RegexNewLine + @")?)(={35}|-{35})(" + RegexNewLine + @"|$)" , RegexOptions . Compiled | RegexOptions . IgnorePatternWhitespace | RegexOptions . ExplicitCapture | RegexOptions . IgnoreCase ) ;
17+ private static Regex _searchRegEx =
18+ new Regex (
19+ @"(?<Archive>Archive:\s+.*?" + RegexNewLine +
20+ @"(.|\s)*?(={35}(" + RegexNewLine + @"|$)))" ,
21+ RegexOptions . Compiled | RegexOptions . IgnorePatternWhitespace | RegexOptions . ExplicitCapture | RegexOptions . IgnoreCase
22+ ) ;
23+ private static Regex _archiveRegEx =
24+ new Regex (
25+ @"Archive:\s+(?<ArchiveName>.*?)\nWorkfile:\s+(?<Filename>.*?)\nArchive\screated:\s+(?<CreatedDate>.*?)" + RegexNewLine +
26+ @"(.|\s)*?-{35}" + RegexNewLine +
27+ @"(?<Revision>Rev\s\d+(\.\d+)*" + RegexNewLine +
28+ @"(.*" + RegexNewLine + @")*" +
29+ @"?Author\sid:.*?" + RegexNewLine +
30+ @"((?!(={35}|-{35}))(.|\s)*?" + RegexNewLine + @")?" +
31+ @"(-{35}|={35})(" + RegexNewLine + @"|$))+" ,
32+ RegexOptions . Compiled | RegexOptions . IgnorePatternWhitespace | RegexOptions . ExplicitCapture | RegexOptions . IgnoreCase
33+ ) ;
34+ private static Regex _revisionRegEx =
35+ new Regex (
36+ @"Rev\s(?<Version>\d(\.\d+)*)" + RegexNewLine +
37+ @"(.*?" + RegexNewLine + @")?" +
38+ @"Checked\sin:\s+(?<CheckIn>.*?)" + RegexNewLine +
39+ @"(.*?" + RegexNewLine + @")?" +
40+ @"Last\smodified:\s+(?<PreviousModification>.*?)" + RegexNewLine +
41+ @"(.*?" + RegexNewLine + @")?" +
42+ @"Author\sid:\s+(?<Author>.*?)\s.*?" + RegexNewLine +
43+ @"(Branches:\s+.*?" + RegexNewLine + @")?" +
44+ @"(?<Comment>(((?!(={35}|-{35}))(.|\s)*?)" + RegexNewLine + @")?)" +
45+ @"(={35}|-{35})(" + RegexNewLine + @"|$)" ,
46+ RegexOptions . Compiled | RegexOptions . IgnorePatternWhitespace | RegexOptions . ExplicitCapture | RegexOptions . IgnoreCase
47+ ) ;
2048
2149 /// <summary>
2250 /// Parses the specified reader.
0 commit comments