diff options
author | Vsevolod Kukol <sevoku@microsoft.com> | 2019-08-09 19:28:53 +0300 |
---|---|---|
committer | Mike Krüger <mikkrg@microsoft.com> | 2019-08-15 10:05:43 +0300 |
commit | 67ce4173797ae3b81a33b5fab69d362e23c9ebe5 (patch) | |
tree | 8c18b9b218acc9e79ee0788dff801a01471f1151 /main | |
parent | 2f498ea2275b7f77046ffaa8797e692db78cce75 (diff) |
[Core] Fix FilePath.IsChildPathOf on Windows
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. |