Skip to content

Commit

Permalink
fix link replace
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyumih committed Sep 19, 2023
1 parent 151e1fe commit e6285f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion link/iconed/iconed.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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( /^\//, ' ' )
}

Expand Down

0 comments on commit e6285f5

Please sign in to comment.