File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
ReportGenerator.Core/Parser/Analysis Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,10 @@ For further details take a look at LICENSE.txt.
6969
7070CHANGELOG
7171
72+ 5.5.2.0
73+
74+ * Fix: # 773: Improved handling of file paths on Unix systems
75+
72765.5.1.0
7377
7478 * New: # 766: Added new setting "preserveTrailingEmptyLine".
Original file line number Diff line number Diff line change @@ -324,9 +324,22 @@ public override bool Equals(object obj)
324324 else
325325 {
326326 var codeFile = ( CodeFile ) obj ;
327+
327328 string fileNameToCompare = codeFile . Path . Substring ( codeFile . Path . LastIndexOf ( '\\ ' ) + 1 ) ;
329+ int indexOfSlash = codeFile . Path . LastIndexOf ( '/' ) ;
330+
331+ if ( indexOfSlash != - 1 )
332+ {
333+ fileNameToCompare = codeFile . Path . Substring ( indexOfSlash + 1 ) ;
334+ }
328335
329336 string fileName = this . Path . Substring ( this . Path . LastIndexOf ( '\\ ' ) + 1 ) ;
337+ indexOfSlash = this . Path . LastIndexOf ( '/' ) ;
338+ if ( indexOfSlash != - 1 )
339+ {
340+ fileName = this . Path . Substring ( this . Path . LastIndexOf ( '/' ) + 1 ) ;
341+ }
342+
330343 return fileName . Equals ( fileNameToCompare , StringComparison . OrdinalIgnoreCase ) ;
331344 }
332345 }
You can’t perform that action at this time.
0 commit comments