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

Port b5ac17c4b6 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
rebase/4.0.0rc2
Eugen Rochko 2021-04-20 02:34:08 +02:00 committed by Claire
parent 89bc4dff6f
commit 0936ae4132
1 changed files with 1 additions and 1 deletions

View File

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