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;
},
},
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',
};
},