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) {
|
private getWordByPos(str, pos) {
|
||||||
|
str = str.replace(/(\r\n|\n|\r)/gm,"");
|
||||||
var left = str.substr(0, pos);
|
var left = str.substr(0, pos);
|
||||||
var right = str.substr(pos);
|
var right = str.substr(pos);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user