Fix newlines not being considered sentence separators in account note (#16079)

Also bullets
th-downstream
Eugen Rochko 4 years ago committed by GitHub
parent 37183113d4
commit 4bffe10987

@ -27,7 +27,7 @@ const makeMapStateToProps = () => {
};
const getFirstSentence = str => {
const arr = str.split(/(([\.\?!]+\s)|[.。?!])/);
const arr = str.split(/(([\.\?!]+\s)|[.。?!\n•])/);
return arr[0];
};

Loading…
Cancel
Save