From 53bed7375a13ba9a7538e81e7f48486a8ab77f27 Mon Sep 17 00:00:00 2001 From: tony <yvan.tchiengue1504@yahoo.fr> Date: Mon, 10 May 2021 21:59:55 +0200 Subject: [PATCH] fix repetition --- .../topic-dialog-comment/topic-dialog-comment.component.html | 2 +- .../topic-dialog-comment/topic-dialog-comment.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/shared/dialog/topic-dialog-comment/topic-dialog-comment.component.html b/src/app/components/shared/dialog/topic-dialog-comment/topic-dialog-comment.component.html index ea037559d..12eee67e5 100644 --- a/src/app/components/shared/dialog/topic-dialog-comment/topic-dialog-comment.component.html +++ b/src/app/components/shared/dialog/topic-dialog-comment/topic-dialog-comment.component.html @@ -1,6 +1,6 @@ <div> <p> - {{(isCollapsed) ? question : question | slice:0:maxShowedCharachters}}{{question.length > maxShowedCharachters && !isCollapsed? "..." : ""}} + <!--{{(isCollapsed) ? question : question | slice:0:maxShowedCharachters}}{{question.length > maxShowedCharachters && !isCollapsed? "..." : ""}} --> <span *ngFor="let part Of partsOfQuestion; let i = index"> {{part}} <span *ngIf="i < partsOfQuestion.length -1"><mark id="myMark">{{keyword}}</mark></span> diff --git a/src/app/components/shared/dialog/topic-dialog-comment/topic-dialog-comment.component.ts b/src/app/components/shared/dialog/topic-dialog-comment/topic-dialog-comment.component.ts index 6ad9d0972..beceea160 100644 --- a/src/app/components/shared/dialog/topic-dialog-comment/topic-dialog-comment.component.ts +++ b/src/app/components/shared/dialog/topic-dialog-comment/topic-dialog-comment.component.ts @@ -15,7 +15,7 @@ export class TopicDialogCommentComponent implements OnInit { get partsOfQuestion(){ - return this.question.slice(0,this.isCollapsed? this.question.length: this.maxShowedCharachters).split(this.keyword) ; + return this.question.slice(0,this.isCollapsed? this.question.length: this.maxShowedCharachters).split(new RegExp(this.keyword,'i')) ; } -- GitLab