diff options
| author | Henry Jameson <me@hjkos.com> | 2019-11-14 00:52:38 +0200 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2019-11-14 00:52:38 +0200 |
| commit | 51ea295704c52b1f9a922868aedf264e53a5ec92 (patch) | |
| tree | 3c84d26daf15b17c7da27b12d7c3c33a69ac4944 /src | |
| parent | bce750c5717419b8f2f2de6d8a4380a4e664f986 (diff) | |
eslint
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/status/status.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js index dd0ce3ab..714ea6d2 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -44,7 +44,7 @@ const Status = { showingLongSubject: false, error: null, // 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: { @@ -266,10 +266,10 @@ const Status = { return processHtml(html, (string) => { if (string.includes('>') && string - .replace(/<[^>]+?>/gi, '') // remove all tags - .replace(/@\w+/gi, '') // remove mentions (even failed ones) - .trim() - .startsWith('>')) { + .replace(/<[^>]+?>/gi, '') // remove all tags + .replace(/@\w+/gi, '') // remove mentions (even failed ones) + .trim() + .startsWith('>')) { return `<span class='greentext'>${string}</span>` } else { return string |
