Skip to content

Commit

Permalink
fix(tasks_tools): ensure RegExp only matches the file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
gkalpak committed Apr 6, 2016
1 parent e0f7c0a commit 34cd091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/utils/seed/tasks_tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function readDir(root: string, cb: (taskname: string) => void) {
let file = files[i];
let curPath = join(path, file);
if (lstatSync(curPath).isFile() && /\.ts$/.test(file)) {
let taskname = file.replace(/(\.ts)/, '');
let taskname = file.replace(/\.ts$/, '');
cb(taskname);
}
}
Expand Down

0 comments on commit 34cd091

Please sign in to comment.