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",
|
"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"
|
||||||
},
|
},
|
||||||
|
|
|
@ -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"]) {
|
||||||
|
|
Loading…
Reference in New Issue