From 734d2ae161e005498d26d2d2180df28fee0c7c7a Mon Sep 17 00:00:00 2001 From: Nicolas Constant Date: Wed, 3 Jun 2020 20:15:26 -0400 Subject: [PATCH] clean up --- src/app/components/create-status/create-status.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/components/create-status/create-status.component.ts b/src/app/components/create-status/create-status.component.ts index 01368bb5..89d936c4 100644 --- a/src/app/components/create-status/create-status.component.ts +++ b/src/app/components/create-status/create-status.component.ts @@ -687,8 +687,7 @@ export class CreateStatusComponent implements OnInit, OnDestroy { if (this.status.includes(selection.pattern)) { this.status = this.replacePatternWithAutosuggest(this.status, selection.pattern, selection.autosuggest); - let cleanStatus = this.status.replace(/\r?\n/g, ' '); - console.warn([cleanStatus]); + let cleanStatus = this.status.replace(/\r?\n/g, ' '); let newCaretPosition = cleanStatus.indexOf(`${selection.autosuggest}`) + selection.autosuggest.length; if (newCaretPosition > cleanStatus.length) newCaretPosition = cleanStatus.length;