(specs, basePath, usage)
| 20525 | exclude: excludeMatcher |
| 20526 | }; |
| 20527 | function getRegularExpressionForWildcard(specs, basePath, usage) { |
| 20528 | var patterns = getRegularExpressionsForWildcards(specs, basePath, usage); |
| 20529 | if (!patterns || !patterns.length) { |
| 20530 | return undefined; |
| 20531 | } |
| 20532 | var pattern = patterns.map(function (pattern) { return "(".concat(pattern, ")"); }).join("|"); |
| 20533 | // If excluding, match "foo/bar/baz...", but if including, only allow "foo". |
| 20534 | var terminator = usage === "exclude" ? "($|/)" : "$"; |
| 20535 | return "^(".concat(pattern, ")").concat(terminator); |
| 20536 | } |
| 20537 | ts.getRegularExpressionForWildcard = getRegularExpressionForWildcard; |
| 20538 | function getRegularExpressionsForWildcards(specs, basePath, usage) { |
| 20539 | if (specs === undefined || specs.length === 0) { |
no test coverage detected