mirror of
https://github.com/kikobar/mastodon.git
synced 2024-12-25 23:34:14 +00:00
Fix newlines not being considered sentence separators in account note (#16079)
Also bullets
This commit is contained in:
parent
18a2589ad3
commit
b5ac17c4b6
|
@ -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…
Reference in a new issue