-
-
Notifications
You must be signed in to change notification settings - Fork 326
Open
Description
In the following code, RegEx /\sedg//i will be treated as if this is a commented section://i],
But in fact it is a valid regex and minifier will break the code.
{
test: [/\sedg//i],
describe(ua) {
const browser = {
name: 'Microsoft Edge',
};
const version = Utils.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i, ua);
if (version) {
browser.version = version;
}
return browser;
},
},
Metadata
Metadata
Assignees
Labels
No labels