This commit is contained in:
parent
03fcba7878
commit
7d1fe46460
@ -368,7 +368,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
var res = await result.json()
|
||||
if (res && res.length > 0) {
|
||||
var bounce = document.getElementById('bounce'),
|
||||
host = new URL(window.location.href).host
|
||||
host = new URL(window.location.href).host,
|
||||
reg = '(<\/?p>|(https?:\/\/)?' + host + ')'
|
||||
bounce.innerHTML = res.map(function (p) { return `${p.content.replace(new RegExp(reg, 'igm'), '')} ${dayjs().to(p.published)}` }).join(' | ')
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user