Re-order and fix regex

This commit is contained in:
Erik Olof Gunnar Andersson 2024-12-02 13:46:46 +01:00
parent 54434f7de1
commit d6c9e7729a

View File

@ -229,10 +229,10 @@ export class HomeComponent {
return `https://ocean.xyz/stats/${address}`;
} else if (stratumURL.includes('solo.d-central.tech')) {
return `https://solo.d-central.tech/#/app/${address}`;
} else if (/solo[46]?.ckpool.org/.test(stratumURL)) {
return `https://solostats.ckpool.org/users/${address}`;
} else if (/eusolo[46]?.ckpool.org/.test(stratumURL)) {
} else if (/^eusolo[46]?.ckpool.org/.test(stratumURL)) {
return `https://eusolostats.ckpool.org/users/${address}`;
} else if (/^solo[46]?.ckpool.org/.test(stratumURL)) {
return `https://solostats.ckpool.org/users/${address}`;
} else if (stratumURL.includes('pool.noderunners.network')) {
return `https://noderunners.network/en/pool/user/${address}`;
} else if (stratumURL.includes('satoshiradio.nl')) {