about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2021-04-20 02:34:08 +0200
committerClaire <claire.github-309c@sitedethib.com>2021-05-07 22:00:11 +0200
commit0936ae413204a2b8e7da1b4b14a65eb856e30e74 (patch)
treeb25af40085468c2691c5e633be6a4a8abc2f9786 /app/javascript/flavours/glitch
parent89bc4dff6f85e585713e777b4a860df77db2936e (diff)
[Glitch] Fix newlines not being considered sentence separators in account note
Port b5ac17c4b6bfa85494fd768bbf1af87ca79b622b to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch')
-rw-r--r--app/javascript/flavours/glitch/features/follow_recommendations/components/account.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/follow_recommendations/components/account.js b/app/javascript/flavours/glitch/features/follow_recommendations/components/account.js
index bee9f9384..046d03a9b 100644
--- a/app/javascript/flavours/glitch/features/follow_recommendations/components/account.js
+++ b/app/javascript/flavours/glitch/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];
 };