aboutsummaryrefslogtreecommitdiff
path: root/main_background.js
diff options
context:
space:
mode:
Diffstat (limited to 'main_background.js')
-rw-r--r--main_background.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/main_background.js b/main_background.js
index d3d7bb4..df5be8e 100644
--- a/main_background.js
+++ b/main_background.js
@@ -651,7 +651,8 @@ function license_read(scriptSrc, name, external = false) {
// let's check the actual license
uneditedSrc = uneditedSrc.substring(openingIndex);
- const closureMatch = /\/([*/])\s*@license-end\b[^*/\n]*/i.exec(uneditedSrc);
+ const closureMatch =
+ /\/([*/])\s*@license-end\s*(\*\/)?/mi.exec(uneditedSrc);
if (!closureMatch) {
const msg = 'ERROR: @license with no @license-end';
return [false, `\n/*\n ${msg} \n*/\n`, msg];