mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
Update datanodes.ts
This commit is contained in:
parent
a54edd8b4a
commit
2ee8a64945
1 changed files with 2 additions and 3 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue