MCPcopy Create free account
hub / github.com/adaptlearning/adapt_framework / generateNestedIncludedRegExp

Function generateNestedIncludedRegExp

grunt/helpers.js:69–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67 };
68
69 const generateNestedIncludedRegExp = function() {
70 const includes = grunt.config('includes') || [];
71 const folderRegEx = 'less/plugins';
72
73 // Return a more specific plugin regExp including src path.
74 const re = _.map(includes, function(plugin) {
75 // eslint-disable-next-line no-useless-escape
76 return exports.defaults.sourcedir + '([^\/]*)\/([^\/]*)\/' + folderRegEx + '\/' + plugin + '\/';
77 }).join('|');
78 return new RegExp(re, 'i');
79 };
80
81 const generateExcludedRegExp = function() {
82 const excludes = grunt.config('excludes') || [];

Callers 1

getNestedIncludedRegExpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected