mirror of
https://github.com/Xevion/the-office.git
synced 2025-12-06 01:16:34 -06:00
Fix .replace only replacing once with regex global flag
This commit is contained in:
@@ -41,7 +41,7 @@ export default {
|
||||
methods: {
|
||||
transform(quoteText) {
|
||||
if (quoteText.includes("[")) {
|
||||
return quoteText.replace(/\[([^\]]+)]/, ' <i>[$1]</i> ')
|
||||
return quoteText.replace(/\[([^\]]+)]/g, ' <i>[$1]</i> ')
|
||||
}
|
||||
return quoteText
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user