Fix newlines not being considered sentence separators in account note (#16079)

Also bullets
master
Eugen Rochko 4 years ago committed by GitHub
parent 18a2589ad3
commit b5ac17c4b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/javascript/mastodon/features/follow_recommendations/components/account.js

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

Loading…
Cancel
Save