Skip to content

Allow full glob filtering in the include #10

@jobelobes

Description

@jobelobes

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) -->

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions