aboutsummaryrefslogtreecommitdiff
path: root/legacy_license_check.js
diff options
context:
space:
mode:
Diffstat (limited to 'legacy_license_check.js')
-rw-r--r--legacy_license_check.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/legacy_license_check.js b/legacy_license_check.js
index f783129..5068085 100644
--- a/legacy_license_check.js
+++ b/legacy_license_check.js
@@ -74,12 +74,12 @@ var search_table = function(stripped_comment){
max_i = data.licenses[license].licenseFragments.length;
for (i = 0; i < max_i; i++) {
if (frag[i].regex.test(stripped)) {
- console.log(data.licenses[license].licenseName);
- return true;
+ //console.log(data.licenses[license].licenseName);
+ return data.licenses[license].licenseName;
}
}
}
- console.log("No license found.");
+ console.log("No global license found.");
return false;
}