Skip to content

--packages and --excludePackages flags don't work with some output formats #177

Closed
@jonny-improbable

Description

Version

license-checker@22.0.0

Expected

Given the following input I would expect mkpkg to be ignored:

license-checker --excludePackages="mypkg"

Actual

mypkg is included in the output.

Observations

From looking at the code, this bug is introduced by the coloring functionality; this means that the .includes() check will fail as the colorised string does not match the user's CLI input (which is not colorised).

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