Skip to content

Manifest#compile does not support regExp files patterns. #216

@olpapchenko

Description

@olpapchenko

Hi,
<Manifest#compile> can not be used with RegExp patterns for files. While passing RegExp to the compile method we will get exception, because it assumes that files array can contain only strings. Here is the problem https://github.com/nodeca/mincer/blob/master/lib/mincer/manifest.js#L217. <isAbsolute> iterator is called for each file entry, if calling it with regExp obviously we will get an error. Can this be fixed by simpy filtering regExps from files array before calling <isAbsolute> method? I have tried locally and after that i was able to use RegExps at the file array for <Manifest#compile>

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