Update regexes in regex.utils.ts

This commit is contained in:
natsee
2023-12-30 19:19:07 +01:00
parent 6cea6ceb7e
commit bd34d71d8b
3 changed files with 105 additions and 35 deletions

View File

@@ -12,6 +12,7 @@ export class RelativeUrlPipe implements PipeTransform {
transform(value: string, swapNetwork?: string): string {
let network = swapNetwork || this.stateService.network;
if (network === 'mainnet') network = '';
if (this.stateService.env.BASE_MODULE === 'liquid' && network === 'liquidtestnet') {
network = 'testnet';
} else if (this.stateService.env.BASE_MODULE !== 'mempool') {