We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 364dd9a commit 609007dCopy full SHA for 609007d
1 file changed
spdxexp/satisfies.go
@@ -238,7 +238,7 @@ func isAtomicLicense(testExpression string) bool {
238
// negatives (e.g. " MIT " would not be considered a single license).
239
func isLicenseWithException(testExpression string) (bool, string, string) {
240
// split by " " and check if there are exactly 3 parts and the middle part is "WITH"
241
- parts := strings.Split(testExpression, " ")
+ parts := strings.Fields(testExpression)
242
if len(parts) == 3 && strings.EqualFold(parts[1], "WITH") {
243
return true, parts[0], parts[2]
244
}
0 commit comments