mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-22 06:49:26 +01:00
rewrite redd.it and its subdomains to teddit domain, fixes #120
This commit is contained in:
parent
531509bf86
commit
b3e5816d7d
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user