Fix empty exclusion storage error
This commit is contained in:
parent
bfe54ab4c4
commit
4fcb1a88d7
|
@ -314,7 +314,7 @@ function filterStylesInternal({
|
||||||
omitCode,
|
omitCode,
|
||||||
});
|
});
|
||||||
if (asHash) {
|
if (asHash) {
|
||||||
if (sections.length) {
|
if (sections.length && sections[0] !== '') {
|
||||||
filtered[style.id] = sections;
|
filtered[style.id] = sections;
|
||||||
filtered.length++;
|
filtered.length++;
|
||||||
}
|
}
|
||||||
|
@ -857,6 +857,7 @@ function detectSloppyRegexps({matchUrl, ids}) {
|
||||||
if (!hasRegExp) continue;
|
if (!hasRegExp) continue;
|
||||||
const applied = getApplicableSections({style, matchUrl, omitCode: false});
|
const applied = getApplicableSections({style, matchUrl, omitCode: false});
|
||||||
const wannabe = getApplicableSections({style, matchUrl, omitCode: false, strictRegexp: false});
|
const wannabe = getApplicableSections({style, matchUrl, omitCode: false, strictRegexp: false});
|
||||||
|
if (wannabe.length && wannabe[0] !== '') {
|
||||||
results.push({
|
results.push({
|
||||||
id,
|
id,
|
||||||
applied,
|
applied,
|
||||||
|
@ -864,5 +865,6 @@ function detectSloppyRegexps({matchUrl, ids}) {
|
||||||
hasInvalidRegexps: wannabe.some(({regexps}) => regexps.some(rx => !rxCache.has(rx))),
|
hasInvalidRegexps: wannabe.some(({regexps}) => regexps.some(rx => !rxCache.has(rx))),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user