Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Gudahtt opened this issue Aug 5, 2018 · 0 comments
Closed

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

Gudahtt opened this issue Aug 5, 2018 · 0 comments

Comments

@Gudahtt
Copy link
Collaborator

Gudahtt commented Aug 5, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant