From 7d0e93c4806d8205e87bf195b324d21c2bd6fc31 Mon Sep 17 00:00:00 2001 From: mavnn Date: Thu, 9 Jul 2015 10:26:35 +0100 Subject: [PATCH] Expose Globbing.isMatch for use by external code. Closes #851 --- src/app/FakeLib/Globbing/Globbing.fs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/FakeLib/Globbing/Globbing.fs b/src/app/FakeLib/Globbing/Globbing.fs index e65c516518b..7241dfb88fd 100644 --- a/src/app/FakeLib/Globbing/Globbing.fs +++ b/src/app/FakeLib/Globbing/Globbing.fs @@ -105,7 +105,7 @@ let internal search (baseDir : string) (input : string) = |> buildPaths [ baseDir ] |> List.map normalizeOutputPath -let internal isMatch pattern path : bool = +let isMatch pattern path : bool = let pattern = normalizePath pattern let path = normalizePath path @@ -131,4 +131,4 @@ let internal isMatch pattern path : bool = ) "^" + replaced + "$" - Regex(regexPattern).IsMatch(path) \ No newline at end of file + Regex(regexPattern).IsMatch(path)