Skip to content

Commit b14f682

Browse files
committed
Merge branch 'lzap-rake-enhance-nil'
2 parents 2a5f102 + 576e20b commit b14f682

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/rake/task_manager.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def enhance_with_matching_rule(task_name, level=0)
127127
fail Rake::RuleRecursionOverflowError,
128128
"Rule Recursion Too Deep" if level >= 16
129129
@rules.each do |pattern, args, extensions, block|
130-
if pattern.match(task_name)
130+
if pattern && pattern.match(task_name)
131131
task = attempt_rule(task_name, pattern, args, extensions, block, level)
132132
return task if task
133133
end

0 commit comments

Comments
 (0)