Skip to content

Throws exception when given empty or whitespace-only string #8

Closed
@Gudahtt

Description

@Gudahtt

When given an empty or whitespace-only string, the exception Invalid argument. Expected non-empty string. is thrown. This is because the library used to match nearly-correct licences (spdx-correct) doesn't allow empty or whitespace-only strings as input.

This library shouldn't bother calling spdx-correct when given an empty or whitespace-only string, instead just returning false with the generic warning message.

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