diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2021-04-20 02:34:08 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2021-05-07 22:00:11 +0200 |
commit | 0936ae413204a2b8e7da1b4b14a65eb856e30e74 (patch) | |
tree | b25af40085468c2691c5e633be6a4a8abc2f9786 /app/javascript/flavours/glitch/features/follow_recommendations | |
parent | 89bc4dff6f85e585713e777b4a860df77db2936e (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/features/follow_recommendations')
-rw-r--r-- | app/javascript/flavours/glitch/features/follow_recommendations/components/account.js | 2 |
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]; }; |