link-domain-blacklist: fix blank blacklist matching empty string

This commit is contained in:
Calvin Montgomery 2018-06-14 18:45:06 -07:00
parent fa49921866
commit dd23564c15
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
"author": "Calvin Montgomery",
"name": "CyTube",
"description": "Online media synchronizer and chat",
"version": "3.56.0",
"version": "3.56.1",
"repository": {
"url": "http://github.com/calzoneman/sync"
},

View File

@ -356,7 +356,7 @@ function preprocessConfig(cfg) {
cfg["link-domain-blacklist"].join("|").replace(/\./g, "\\."), "gi");
} else {
// Match nothing
cfg["link-domain-blacklist-regex"] = new RegExp("$^", "gi");
cfg["link-domain-blacklist-regex"] = new RegExp("$x^", "gi");
}
if (cfg["youtube-v3-key"]) {