minor improvement
This commit is contained in:
parent
9a3b20692c
commit
fd0f6e035d
|
@ -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 "";
|
||||
}
|
||||
|
|
Ŝarĝante…
Reference in New Issue