mirror of
https://gitlab1.ptb.de/waltem01/Matrix
synced 2024-08-17 03:39:43 +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
|
// Get all sources of posts
|
||||||
const regex = /<img[^>]+role="presentation"[^>]+src="(.*?)"[^>]*>/g;
|
const regex = /<img[^>]+role="presentation"[^>]+src="(.*?)"[^>]*>/g;
|
||||||
let results = [],
|
const results: string[] = [];
|
||||||
match;
|
let match: RegExpExecArray | null;
|
||||||
while ((match = regex.exec(text)) !== null) results.push(match[1]);
|
while ((match = regex.exec(text)) !== null) results.push(match[1]);
|
||||||
|
|
||||||
// Return source data
|
// Return source data
|
||||||
|
|
Loading…
Reference in New Issue
Block a user