minor improvement

This commit is contained in:
Daniel 2023-06-20 18:34:38 +03:30
parent 9a3b20692c
commit fd0f6e035d

View File

@ -4,6 +4,6 @@ export default async function getTitle(url: string) {
// regular expression to find the <title> tag
let match = text.match(/<title.*>([^<]*)<\/title>/);
if (match) return match[1];
if (match) return match[1] + " [AUTO GENERATED]";
else return "";
}