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", "author": "Calvin Montgomery",
"name": "CyTube", "name": "CyTube",
"description": "Online media synchronizer and chat", "description": "Online media synchronizer and chat",
"version": "3.56.0", "version": "3.56.1",
"repository": { "repository": {
"url": "http://github.com/calzoneman/sync" "url": "http://github.com/calzoneman/sync"
}, },

View File

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