Skip to content

Commit d4fea28

Browse files
authored
Merge pull request #376 from quoid/fix/f78f784
Fix/f78f784
2 parents 686eac8 + 290b27e commit d4fea28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/page/Components/Settings.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
2424
// check if val matches `match patterns`, if not, return a warning
2525
const re = /^(http:|https:|\*:)\/\/((?:\*\.)?(?:[a-z0-9-]+\.)+(?:[a-z0-9]+)|\*\.[a-z]+|\*|[a-z0-9]+)(\/[^\s]*)$/;
26+
blacklistError = false;
2627
for (const v of val) {
2728
if (re.exec(v) === null) {
2829
blacklistError = true;
2930
log.add(`Invalid match pattern: ${v}`, "error", true);
3031
}
3132
}
3233
if (blacklistError) return console.warn("Global exclude includes invalid match patterns");
33-
blacklistError = false;
3434
3535
// compare blacklist input to saved blacklist
3636
if ([...val].sort().toString() !== [...$settings.blacklist].sort().toString()) {

0 commit comments

Comments
 (0)