We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 686eac8 + 290b27e commit d4fea28Copy full SHA for d4fea28
src/page/Components/Settings.svelte
@@ -23,14 +23,14 @@
23
24
// check if val matches `match patterns`, if not, return a warning
25
const re = /^(http:|https:|\*:)\/\/((?:\*\.)?(?:[a-z0-9-]+\.)+(?:[a-z0-9]+)|\*\.[a-z]+|\*|[a-z0-9]+)(\/[^\s]*)$/;
26
+ blacklistError = false;
27
for (const v of val) {
28
if (re.exec(v) === null) {
29
blacklistError = true;
30
log.add(`Invalid match pattern: ${v}`, "error", true);
31
}
32
33
if (blacklistError) return console.warn("Global exclude includes invalid match patterns");
- blacklistError = false;
34
35
// compare blacklist input to saved blacklist
36
if ([...val].sort().toString() !== [...$settings.blacklist].sort().toString()) {
0 commit comments