Skip to content

Commit

Permalink
Fix newlines not being considered sentence separators in account note (
Browse files Browse the repository at this point in the history
…mastodon#16079)

Also bullets
  • Loading branch information
Gargron authored and chrisguida committed Feb 26, 2022
1 parent dd63280 commit a16e88e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const makeMapStateToProps = () => {
};

const getFirstSentence = str => {
const arr = str.split(/(([\.\?!]+\s)|[.。?!])/);
const arr = str.split(/(([\.\?!]+\s)|[.。?!\n•])/);

return arr[0];
};
Expand Down

0 comments on commit a16e88e

Please sign in to comment.