Skip to content

Commit

Permalink
Merge pull request #860 from mavnn/develop
Browse files Browse the repository at this point in the history
Expose Globbing.isMatch for use by external code.
  • Loading branch information
forki committed Jul 13, 2015
2 parents 3a171df + 7d0e93c commit aaffead
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/FakeLib/Globbing/Globbing.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -131,4 +131,4 @@ let internal isMatch pattern path : bool =
)
"^" + replaced + "$"

Regex(regexPattern).IsMatch(path)
Regex(regexPattern).IsMatch(path)

0 comments on commit aaffead

Please sign in to comment.