aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--legacy_license_check.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/legacy_license_check.js b/legacy_license_check.js
index 00d341e..f783129 100644
--- a/legacy_license_check.js
+++ b/legacy_license_check.js
@@ -40,7 +40,7 @@ var stripLicenseToRegexp = function (license) {
item = license.licenseFragments[i];
item.regex = match_utils.removeNonalpha(item.text);
item.regex = new RegExp(
- match_utils.replaceTokens(item.regex), 'g');
+ match_utils.replaceTokens(item.regex), '');
}
return license;
};