mirror of
https://gitlab1.ptb.de/waltem01/Matrix
synced 2024-11-14 00:43:50 +00:00
fixup: better typing
This commit is contained in:
parent
100d37e552
commit
6333a2bac7
@ -19,8 +19,8 @@ export const GET: RequestHandler = async ({ url }) => {
|
||||
|
||||
// Get all sources of posts
|
||||
const regex = /<img[^>]+role="presentation"[^>]+src="(.*?)"[^>]*>/g;
|
||||
let results = [],
|
||||
match;
|
||||
const results: string[] = [];
|
||||
let match: RegExpExecArray | null;
|
||||
while ((match = regex.exec(text)) !== null) results.push(match[1]);
|
||||
|
||||
// Return source data
|
||||
|
Loading…
Reference in New Issue
Block a user