mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-17 16:33:55 +00:00
Update datanodes.ts
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user