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

Also bullets
lolsob-rspec
Eugen Rochko 2021-04-20 02:34:08 +02:00 committed by GitHub
parent 37183113d4
commit 4bffe10987
1 changed files with 1 additions and 1 deletions

View File

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