Skip to content

Commit 741c955

Browse files
authored
Merge pull request #420 from falsefalse/patch-1
Fix jake -T for directory tasks
2 parents f600048 + 3bff4da commit 741c955

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/task/task.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ class Task extends EventEmitter {
420420

421421
_getParams() {
422422
if (!this.action) return "";
423-
let params = new RegExp('(?:'+this.action.name+'\\s*|^)\\s*\\((.*?)\\)').exec(this.action.toString().replace(/\n/g, ''))[1].replace(/\/\*.*?\*\//g, '').replace(/ /g, '');
423+
let params = (new RegExp('(?:'+this.action.name+'\\s*|^)\\s*\\((.*?)\\)').exec(this.action.toString().replace(/\n/g, '')) || [,''])[1].replace(/\/\*.*?\*\//g, '').replace(/ /g, '');
424424
return params;
425425
}
426426

0 commit comments

Comments
 (0)