diff --git a/src/components/QuoteList.vue b/src/components/QuoteList.vue index a5e10c0..6a2e4ad 100644 --- a/src/components/QuoteList.vue +++ b/src/components/QuoteList.vue @@ -16,9 +16,7 @@ {{ quote.speaker }} - - {{ quote.text }} - + @@ -41,6 +39,12 @@ export default { }, }, methods: { + transform(quoteText) { + if (quoteText.includes("[")) { + return quoteText.replace(/\[([^\]]+)]/, '[$1]') + } + return quoteText + }, quote_link(quoteIndex) { return `/${this.$route.params.season}/${this.$route.params.episode}#${this.sceneIndex}-${quoteIndex}`; },