replace all (*.)reddit.com domains with teddit domain #120

This commit is contained in:
teddit 2021-03-20 18:46:02 +01:00
parent 15250a1c00
commit 531509bf86

View File

@ -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 {