From 054b01b37db9b73f228ddd82b9711b7298beab11 Mon Sep 17 00:00:00 2001 From: David Hall Date: Wed, 13 Nov 2019 23:06:39 -0500 Subject: [PATCH] Fixed bug in MatchesLookupPattern (#71) --- System/Path.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/System/Path.cs b/System/Path.cs index bda8f31a..b3ca3964 100644 --- a/System/Path.cs +++ b/System/Path.cs @@ -322,7 +322,7 @@ namespace Vanara.IO /// Return if a file name pattern specified in matched the file name found in the /// string pointed to by . /// - public static bool MatchesLookupPattern(string path, string pattern, bool ignorePatternWhitespace = false) => PathMatchSpecEx(path, pattern, (ignorePatternWhitespace ? PMSF.PMSF_DONT_STRIP_SPACES : 0) | (pattern.IndexOf(';') < 0 ? PMSF.PMSF_NORMAL : PMSF.PMSF_MULTIPLE)).Succeeded; + public static bool MatchesLookupPattern(string path, string pattern, bool ignorePatternWhitespace = false) => PathMatchSpecEx(path, pattern, (ignorePatternWhitespace ? PMSF.PMSF_DONT_STRIP_SPACES : 0) | (pattern.IndexOf(';') < 0 ? PMSF.PMSF_NORMAL : PMSF.PMSF_MULTIPLE)) == HRESULT.S_OK; /// Searches a path for spaces. If spaces are found, the entire path is enclosed in quotation marks. /// A string that contains the path to search.