From 9aa680ce509f62f57774981815094a1c273d8fa6 Mon Sep 17 00:00:00 2001 From: ogerly Date: Tue, 7 Jan 2020 05:40:09 +0100 Subject: [PATCH] Fix lint --- webapp/components/Comment/Comment.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/webapp/components/Comment/Comment.vue b/webapp/components/Comment/Comment.vue index 46163bed0..ed7b9b064 100644 --- a/webapp/components/Comment/Comment.vue +++ b/webapp/components/Comment/Comment.vue @@ -113,8 +113,8 @@ export default { if (this.isLongComment && this.isCollapsed) { return this.$filters.truncate(this.comment.content, COMMENT_TRUNCATE_TO_LENGTH) } - - return this.comment.content + // console.log(this.comment.content.replace(/\?/gi, '?++')) + return this.comment.content.replace(/\?/gi, ' ') }, displaysComment() { return !this.unavailable || this.isModerator @@ -187,10 +187,10 @@ export default { '' document.querySelector('.editor-content div').focus() if (document.querySelector('.is-empty')) { - document.querySelector('.is-empty').innerHTML = slug + ' ' + document.querySelector('.is-empty').innerHTML = slug + ' ' } else { - const html = document.querySelector('.editor-content').innerHTML - document.querySelector('.editor-content div').innerHTML = html + ' ' + slug + ' ' + const html = document.querySelector('.editor-content').innerHTML + document.querySelector('.editor-content div').innerHTML = html + ' ' + slug + ' ' } }, },