mirror of
https://github.com/Brandon-Rozek/website.git
synced 2025-08-03 23:31:59 +00:00
Removed common title suffix
This commit is contained in:
parent
77232e4af3
commit
40122dc318
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Reference in a new issue