rewrite redd.it and its subdomains to teddit domain, fixes #120

This commit is contained in:
teddit 2021-03-20 19:06:54 +01:00
parent 531509bf86
commit b3e5816d7d

View File

@ -152,7 +152,7 @@ module.exports = function(request, fs) {
let str = s.replace(re, (m) => {
return unescaped[m]
})
let r = /([A-z.]+\.)?reddit(\.com)/gm;
let r = /([A-z.]+\.)?(reddit(\.com)|redd(\.it))/gm;
let result = str.replace(r, config.domain)
return result
} else {