minor improvement
This commit is contained in:
+1
-1
@@ -4,6 +4,6 @@ export default async function getTitle(url: string) {
|
|||||||
|
|
||||||
// regular expression to find the <title> tag
|
// regular expression to find the <title> tag
|
||||||
let match = text.match(/<title.*>([^<]*)<\/title>/);
|
let match = text.match(/<title.*>([^<]*)<\/title>/);
|
||||||
if (match) return match[1];
|
if (match) return match[1] + " [AUTO GENERATED]";
|
||||||
else return "";
|
else return "";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user