[Glitch] Fix newlines not being considered sentence separators in account note

Port 4bffe10987 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
th-downstream
Eugen Rochko 4 years ago committed by Claire
parent c1eeb8603a
commit 8df28df755

@ -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