feat!: added PDF and screenshot archive support
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
export default async (url: string) => {
|
||||
const response = await fetch(url);
|
||||
const text = await response.text();
|
||||
|
||||
// regular expression to find the <title> tag
|
||||
let match = text.match(/<title.*>([^<]*)<\/title>/);
|
||||
if (match) return match[1];
|
||||
else return "";
|
||||
};
|
||||
Reference in New Issue
Block a user