]> cat aescling's git repositories - mastodon.git/commitdiff
Fix newlines not being considered sentence separators in account note (#16079)
authorEugen Rochko <eugen@zeonfederated.com>
Tue, 20 Apr 2021 00:34:08 +0000 (02:34 +0200)
committerGitHub <noreply@github.com>
Tue, 20 Apr 2021 00:34:08 +0000 (02:34 +0200)
Also bullets

app/javascript/mastodon/features/follow_recommendations/components/account.js

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