fix status analysis when return lines are present
This commit is contained in:
parent
72cf69d9c0
commit
59a423f952
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue