diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/src/core/MonoDevelop.Core/MonoDevelop.Core/FilePath.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Core/FilePath.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Core/FilePath.cs index 174855dd61..b77c9b23e3 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Core/FilePath.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Core/FilePath.cs @@ -178,7 +178,7 @@ namespace MonoDevelop.Core { bool startsWith = fileName.StartsWith (basePath.fileName, PathComparison); - if (startsWith && (basePath.fileName [basePath.fileName.Length - 1] != Path.DirectorySeparatorChar || + if (startsWith && (basePath.fileName [basePath.fileName.Length - 1] != Path.DirectorySeparatorChar && basePath.fileName [basePath.fileName.Length - 1] != Path.AltDirectorySeparatorChar)) { // If the last character isn't a path separator character, check whether the string we're searching in
// has more characters than the string we're looking for then check the character. |