Fix newlines not being considered sentence separators in account note (#16079)
Also bulletsremotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
parent
18a2589ad3
commit
b5ac17c4b6
|
@ -27,7 +27,7 @@ const makeMapStateToProps = () => {
|
|||
};
|
||||
|
||||
const getFirstSentence = str => {
|
||||
const arr = str.split(/(([\.\?!]+\s)|[.。?!])/);
|
||||
const arr = str.split(/(([\.\?!]+\s)|[.。?!\n•])/);
|
||||
|
||||
return arr[0];
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue