Skip to content

Commit a8bbd1a

Browse files
committed
Fix JS code extraction from web accessible resources
Related feedback: uBlockOrigin/uBlock-discussions#933 (comment)
1 parent dbcb242 commit a8bbd1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/js/redirect-engine.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const mimeFromName = name => {
5656
};
5757

5858
const removeTopCommentBlock = text => {
59-
return text.replace(/^\/\*[\S\s]+?\n\*\/\s*/, '');
59+
return text.replace(/^\/\*[\S\s]+?\*\/\s*/g, '');
6060
};
6161

6262
// vAPI.warSecret is optional, it could be absent in some environments,

0 commit comments

Comments
 (0)