From b5ac17c4b6bfa85494fd768bbf1af87ca79b622b Mon Sep 17 00:00:00 2001
From: Eugen Rochko <eugen@zeonfederated.com>
Date: Tue, 20 Apr 2021 02:34:08 +0200
Subject: [PATCH] Fix newlines not being considered sentence separators in
 account note (#16079)

Also bullets
---
 .../features/follow_recommendations/components/account.js       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/javascript/mastodon/features/follow_recommendations/components/account.js b/app/javascript/mastodon/features/follow_recommendations/components/account.js
index 23c03d1ff64..bd855aab0cb 100644
--- a/app/javascript/mastodon/features/follow_recommendations/components/account.js
+++ b/app/javascript/mastodon/features/follow_recommendations/components/account.js
@@ -27,7 +27,7 @@ const makeMapStateToProps = () => {
 };
 
 const getFirstSentence = str => {
-  const arr = str.split(/(([\.\?!]+\s)|[.。?!])/);
+  const arr = str.split(/(([\.\?!]+\s)|[.。?!\n•])/);
 
   return arr[0];
 };