From dd23564c15d06cd0c7313a3b2147c0488df4adb4 Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Thu, 14 Jun 2018 18:45:06 -0700 Subject: [PATCH] link-domain-blacklist: fix blank blacklist matching empty string --- package.json | 2 +- src/config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index af50dc8d..a35f4cb1 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/src/config.js b/src/config.js index 98fc3f14..8d08801f 100644 --- a/src/config.js +++ b/src/config.js @@ -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"]) {