mirror of
https://github.com/Xevion/the-office.git
synced 2025-12-06 03:16:45 -06:00
Add spaces around bracket [text] in QuoteList.vue
This commit is contained in:
@@ -41,7 +41,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
transform(quoteText) {
|
transform(quoteText) {
|
||||||
if (quoteText.includes("[")) {
|
if (quoteText.includes("[")) {
|
||||||
return quoteText.replace(/\[([^\]]+)]/, '<i>[$1]</i>')
|
return quoteText.replace(/\[([^\]]+)]/, ' <i>[$1]</i> ')
|
||||||
}
|
}
|
||||||
return quoteText
|
return quoteText
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user