diff --git a/public/main.js b/public/main.js index b8fde47..9f96996 100644 --- a/public/main.js +++ b/public/main.js @@ -368,8 +368,8 @@ 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 - reg = '(<\/?p>|(https?:\/\/)?' + 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(' | ') } })