-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Search for WITH operator in loose classifier
Until now, the "loose" classifier handled licensing exceptions by matching the end of the licence string against a list of acceptable suffixes, each of those containing a variation of the WITH operator - like " WITH " or "-with-". This was rather inelegant. This commit changes the behaviour of the classifier to search for the presence of the WITH operator within the licence string. Should it be found, the string is split into the licence name and exception name. Then, the exception name can be checked against a (slightly shorter) list of acceptable suffixes.
- Loading branch information
Showing
2 changed files
with
83 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters