Skip to content

Commit

Permalink
Merge branch 'nestedclassfix' of https://github.com/bchildsdotcom/Rep…
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpalme committed May 22, 2019
2 parents ccba74e + 354382d commit 0629498
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ReportGenerator.Core/Parser/CoberturaParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ private void ProcessClass(XElement[] modules, Assembly assembly, string classNam
.Elements("class")
.Where(c => c.Attribute("name").Value.Equals(className)
|| c.Attribute("name").Value.StartsWith(className + "$", StringComparison.Ordinal)
|| c.Attribute("name").Value.StartsWith(className + "/<", StringComparison.Ordinal))
|| c.Attribute("name").Value.StartsWith(className + "/", StringComparison.Ordinal))
.Select(c => c.Attribute("filename").Value)
.Distinct()
.ToArray();
Expand Down Expand Up @@ -178,7 +178,7 @@ private static CodeFile ProcessFile(XElement[] modules, Class @class, string fil
.Elements("class")
.Where(c => c.Attribute("name").Value.Equals(@class.Name)
|| c.Attribute("name").Value.StartsWith(@class.Name + "$", StringComparison.Ordinal)
|| c.Attribute("name").Value.StartsWith(@class.Name + "/<", StringComparison.Ordinal))
|| c.Attribute("name").Value.StartsWith(@class.Name + "/", StringComparison.Ordinal))
.ToArray();

var lines = classes.Elements("lines")
Expand Down

0 comments on commit 0629498

Please sign in to comment.