clean up
This commit is contained in:
parent
5674127e28
commit
734d2ae161
|
@ -688,7 +688,6 @@ export class CreateStatusComponent implements OnInit, OnDestroy {
|
|||
this.status = this.replacePatternWithAutosuggest(this.status, selection.pattern, selection.autosuggest);
|
||||
|
||||
let cleanStatus = this.status.replace(/\r?\n/g, ' ');
|
||||
console.warn([cleanStatus]);
|
||||
let newCaretPosition = cleanStatus.indexOf(`${selection.autosuggest}`) + selection.autosuggest.length;
|
||||
if (newCaretPosition > cleanStatus.length) newCaretPosition = cleanStatus.length;
|
||||
|
||||
|
|
Loading…
Reference in New Issue