File tree Expand file tree Collapse file tree
src/IronyModManager.Services Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -747,9 +747,9 @@ protected virtual ParsedSearchResult CleanSearchResult(ISearchParserResult parse
747747 /// <returns>IEnumerable<IModInstallationResult>.</returns>
748748 protected virtual IEnumerable < IModInstallationResult > GetAllModDescriptors ( string path , ModSource modSource , ModDescriptorType modDescriptorType )
749749 {
750- bool IsSubPath ( string path , string potentialParent )
750+ static bool IsSubPath ( string path , string potentialParent )
751751 {
752- return path . StartsWith ( potentialParent . TrimEnd ( ' \\ ' ) + " \\ " , StringComparison . OrdinalIgnoreCase ) ;
752+ return path . StartsWith ( potentialParent . TrimEnd ( Path . DirectorySeparatorChar ) + Path . DirectorySeparatorChar , StringComparison . OrdinalIgnoreCase ) ;
753753 }
754754
755755 // Json metadata doesn't support zips to ignore them
You can’t perform that action at this time.
0 commit comments