bug-librejs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-librejs] main_background.js - line 685 - wrong regex


From: Denny O'Breham
Subject: [Bug-librejs] main_background.js - line 685 - wrong regex
Date: Sun, 1 Sep 2019 20:14:50 -0400

While looking for @license, the regex found on line 685 in main_background.js doesn't allow the use of block comments (/* ... */).

It reads /\/[\/\*]\s*?(@license)\s+(\S+)\s+(\S+)\s*$/mi which doesn't allow the closing */ at the end of the line, therefore the comment is ignored.

It should be something like /\/[\/\*]\s*?(@license)\s+(\S+)\s+(\S+)\s*(\*\/)?$/mi. ( => added (\*\/)? before the $).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]