Update components/status/StatusPreviewCardNormal.vue

Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
This commit is contained in:
Ayo Ayco 2023-01-29 18:07:52 +01:00 committed by GitHub
parent ba4f6e9e1a
commit b8f492a255
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ const providerName = $computed(() => {
if (props.card.providerName) {
finalProviderName = props.card.providerName
if (props.cleanSharedLink && finalProviderName !== props.cleanSharedLink)
finalProviderName = `${props.card.providerName} · ${props.cleanSharedLink.replace('https://', '')}`
finalProviderName = `${props.card.providerName} · ${props.cleanSharedLink.replace(/^https?:\/\//, '')}`
}
return finalProviderName