8000 Adds glob-style pattern matching for file specifications using new "include" property in tsconfig.json by rbuckton · Pull Request #3232 · microsoft/TypeScript · GitHub
[go: up one dir, main page]

Skip to content

Adds glob-style pattern matching for file specifications using new "include" property in tsconfig.json #3232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 11 commits into from
Closed
Prev Previous commit
Next Next commit
Minor edit for readability
  • Loading branch information
rbuckton committed May 20, 2015
commit 44ee64f4fdc5c365910c6eff5967bc05fe087d85
3 changes: 2 additions & 1 deletion src/compiler/commandLineParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,8 @@ module ts {

// match the entries in the directory against the wildcard pattern.
let entries = host.readDirectoryFlat(basePath);
let pattern = createRegularExpressionFromWildcard(fileSpec, start, isEndOfLine ? fileSpec.length : offset);
let end = isEndOfLine ? fileSpec.length : offset;
let pattern = createRegularExpressionFromWildcard(fileSpec, start, end);
for (let entry of entries) {
// skip the entry if it does not match the pattern.
if (!pattern.test(entry)) {
Expand Down
0