From fd0f6e035d048c051e9f5d8a343c9df5c284ce55 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 20 Jun 2023 18:34:38 +0330 Subject: [PATCH] minor improvement --- lib/api/getTitle.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/getTitle.ts b/lib/api/getTitle.ts index 47a5d22..e654b30 100644 --- a/lib/api/getTitle.ts +++ b/lib/api/getTitle.ts @@ -4,6 +4,6 @@ export default async function getTitle(url: string) { // regular expression to find the tag let match = text.match(/<title.*>([^<]*)<\/title>/); - if (match) return match[1]; + if (match) return match[1] + " [AUTO GENERATED]"; else return ""; }