diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2021-04-20 02:34:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-20 02:34:08 +0200 |
commit | b5ac17c4b6bfa85494fd768bbf1af87ca79b622b (patch) | |
tree | 40a10a592c9011aac18dcec861d7faf0d5b6e61f | |
parent | 18a2589ad3463e51fc1fbf57a32b8df21f8976c7 (diff) |
Fix newlines not being considered sentence separators in account note (#16079)
Also bullets
-rw-r--r-- | app/javascript/mastodon/features/follow_recommendations/components/account.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/follow_recommendations/components/account.js b/app/javascript/mastodon/features/follow_recommendations/components/account.js index 23c03d1ff..bd855aab0 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]; }; |