Removed common title suffix

This commit is contained in:
Brandon Rozek 2024-11-28 17:41:57 -05:00
parent 77232e4af3
commit 40122dc318
No known key found for this signature in database
GPG key ID: 26E457DA82C9F480

View file

@ -49,7 +49,7 @@ async function listPages() {
if (post.headers.get('content-type').includes('text/html')) { if (post.headers.get('content-type').includes('text/html')) {
const body = await post.text(); const body = await post.text();
console.log(body) console.log(body)
const title = body.match(/<title>(.*)<\/title>/)[1]; const title = body.match(/<title>(.*)<\/title>/)[1].replace("| Brandon Rozek", "");
result.push({ result.push({
url, url,
post, post,