mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-22 06:49:26 +01:00
replace all (*.)reddit.com domains with teddit domain #120
This commit is contained in:
parent
15250a1c00
commit
531509bf86
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user