fix status analysis when return lines are present

This commit is contained in:
Nicolas Constant 2019-07-30 00:33:25 -04:00
parent 72cf69d9c0
commit 59a423f952
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
1 changed files with 1 additions and 0 deletions

View File

@ -223,6 +223,7 @@ export class CreateStatusComponent implements OnInit, OnDestroy {
}
private getWordByPos(str, pos) {
str = str.replace(/(\r\n|\n|\r)/gm,"");
var left = str.substr(0, pos);
var right = str.substr(pos);