forked from AkkomaGang/akkoma-fe
eslint
This commit is contained in:
parent
bce750c571
commit
51ea295704
1 changed files with 5 additions and 5 deletions
|
@ -44,7 +44,7 @@ const Status = {
|
||||||
showingLongSubject: false,
|
showingLongSubject: false,
|
||||||
error: null,
|
error: null,
|
||||||
// not as computed because it sets the initial state which will be changed later
|
// not as computed because it sets the initial state which will be changed later
|
||||||
expandingSubject: !this.$store.getters.mergedConfig.collapseMessageWithSubject,
|
expandingSubject: !this.$store.getters.mergedConfig.collapseMessageWithSubject
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -266,10 +266,10 @@ const Status = {
|
||||||
return processHtml(html, (string) => {
|
return processHtml(html, (string) => {
|
||||||
if (string.includes('>') &&
|
if (string.includes('>') &&
|
||||||
string
|
string
|
||||||
.replace(/<[^>]+?>/gi, '') // remove all tags
|
.replace(/<[^>]+?>/gi, '') // remove all tags
|
||||||
.replace(/@\w+/gi, '') // remove mentions (even failed ones)
|
.replace(/@\w+/gi, '') // remove mentions (even failed ones)
|
||||||
.trim()
|
.trim()
|
||||||
.startsWith('>')) {
|
.startsWith('>')) {
|
||||||
return `<span class='greentext'>${string}</span>`
|
return `<span class='greentext'>${string}</span>`
|
||||||
} else {
|
} else {
|
||||||
return string
|
return string
|
||||||
|
|
Loading…
Reference in a new issue