diff --git a/src/pages/trails/ballots/view/BallotView.vue b/src/pages/trails/ballots/view/BallotView.vue index 080fc70..2134e42 100644 --- a/src/pages/trails/ballots/view/BallotView.vue +++ b/src/pages/trails/ballots/view/BallotView.vue @@ -103,11 +103,32 @@ export default { } }, shapedDescription() { + // first, try to parse the description as an url const urlRegex = /((http|https):\/\/[^\s]+)/g; const shaped = this.ballot.readableDescription.replace( urlRegex, '$1' ); + if (shaped === this.ballot.readableDescription) { + // if no urls were found, try something else + // "