gulp-include-source icon indicating copy to clipboard operation
gulp-include-source copied to clipboard

Allow full glob filtering in the include

Open jobelobes opened this issue 10 years ago • 0 comments

Currently the matching regular expression does not allow any inner parenthesis. By changing line 19 from return contents.match(/<!--\s+include:([a-z]+)\(([^)]+)\)\s+-->/); to 'return contents.match(//);' users can now add full glob filters.

Ex. Currently this include will fail and be passed over because it has inner parenthesis. <!-- include:js(app/*/**/+(*.module|module).js) -->

jobelobes avatar Feb 12 '15 23:02 jobelobes