From 531509bf8629386ca1be2e2ef51994a2c933c6d9 Mon Sep 17 00:00:00 2001 From: teddit Date: Sat, 20 Mar 2021 18:46:02 +0100 Subject: [PATCH] replace all (*.)reddit.com domains with teddit domain #120 --- inc/commons.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/commons.js b/inc/commons.js index d24f241..c2c1f5a 100644 --- a/inc/commons.js +++ b/inc/commons.js @@ -152,7 +152,7 @@ module.exports = function(request, fs) { let str = s.replace(re, (m) => { return unescaped[m] }) - let r = new RegExp('((www|old)\.)?reddit[.]com', 'g') + let r = /([A-z.]+\.)?reddit(\.com)/gm; let result = str.replace(r, config.domain) return result } else {