nl_tokens: Convert patterns to tasks based on parent directory of each pattern .
pl_tokens: function convertPatternsToTasks ( positive , negative , dynamic ) { var positivePatternsGroup = groupPatternsByBaseDirectory ( positive ) ; var negativePatternsGroup = groupPatternsByBaseDirectory ( negative ) ; // When we have a global group – there is no reason to divide the patterns into independent tasks. // In this case, the global task covers the rest. if ( '.' in positivePatternsGroup ) { var task = convertPatternGroupToTask ( '.' , positive , negative , dynamic ) ; return [ <mask> ] ; } return convertPatternGroupsToTasks ( positivePatternsGroup , negativePatternsGroup , dynamic ) ; }