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 ea037559dcecfd287503aa63bd5dbf8e47dc09f2..12eee67e5f44f6ba8877ff65ca2da99a99ca2e33 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 6ad9d09724da4cb40eb7f7ea1a88a68102584a8a..beceea160c9ba953f001a195aafcfd7c04948bd1 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')) ; }