Update datanodes.ts

This commit is contained in:
Shisuys 2025-02-27 00:36:54 -03:00
parent a54edd8b4a
commit 2ee8a64945

View file

@ -59,9 +59,8 @@ export class DatanodesApi {
throw new Error("Empty response received");
}
const downloadLinkMatch = htmlContent.match(
/href=["'](https:\/\/[^"']+)["']/
);
const downloadLinkRegex = /href=["'](https:\/\/[^"']+)["']/;
const downloadLinkMatch = downloadLinkRegex.exec(htmlContent);
if (downloadLinkMatch) {
return downloadLinkMatch[1];
}