mirror of https://github.com/calzoneman/sync.git
link-domain-blacklist: fix blank blacklist matching empty string
This commit is contained in:
parent
fa49921866
commit
dd23564c15
|
@ -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"
|
||||
},
|
||||
|
|
|
@ -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"]) {
|
||||
|
|
Loading…
Reference in New Issue