From e6285f559be07d5b6ed101b18103b3830845e712 Mon Sep 17 00:00:00 2001 From: Mikhail Ivanov Date: Tue, 19 Sep 2023 20:54:13 +0000 Subject: [PATCH] fix link replace --- link/iconed/iconed.view.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/link/iconed/iconed.view.ts b/link/iconed/iconed.view.ts index ea1a17ac3d7..2a014b80e39 100644 --- a/link/iconed/iconed.view.ts +++ b/link/iconed/iconed.view.ts @@ -19,7 +19,7 @@ namespace $.$$ { title() { const uri = this.uri() const host = this.host() - const suffix = ( host ? uri.split( this.host() , 2 )[1] : uri ).replace( /^[\/\?#!]+/, '' ) + const suffix = ( host ? uri.split( this.host() , 2 )[1] : uri )?.replace( /^[\/\?#!]+/, '' ) return decodeURIComponent( suffix || host ).replace( /^\//, ' ' ) }