mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-26 00:59:24 +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) => {
|
let str = s.replace(re, (m) => {
|
||||||
return unescaped[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)
|
let result = str.replace(r, config.domain)
|
||||||
return result
|
return result
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user