From 57c425c7e321ad1970afd57817b65ce9f485c514 Mon Sep 17 00:00:00 2001 From: Maxime Lamer <83651899+LAMM26@users.noreply.github.com> Date: Thu, 22 Aug 2024 10:30:24 -0400 Subject: [PATCH] fix(feature-details): fix depot url regex (#1690) --- .../lib/feature/feature-details/feature-details.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/geo/src/lib/feature/feature-details/feature-details.component.ts b/packages/geo/src/lib/feature/feature-details/feature-details.component.ts index a84859a38..099664d82 100644 --- a/packages/geo/src/lib/feature/feature-details/feature-details.component.ts +++ b/packages/geo/src/lib/feature/feature-details/feature-details.component.ts @@ -169,8 +169,8 @@ export class FeatureDetailsComponent implements OnInit, OnDestroy { openSecureUrl(value) { let url: string; - const regexDepot = new RegExp( - this.configService?.getConfig('depot.url') + '.*?(?="|$)' + const regexDepot: RegExp = new RegExp( + this.configService?.getConfig('depot.url') + '.*?(?=\\s|$)' ); if (regexDepot.test(value)) {