mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-01-17 21:22:55 -05:00
[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>
This commit is contained in:
parent
89bc4dff6f
commit
0936ae4132
@ -27,7 +27,7 @@ const makeMapStateToProps = () => {
|
||||
};
|
||||
|
||||
const getFirstSentence = str => {
|
||||
const arr = str.split(/(([\.\?!]+\s)|[.。?!])/);
|
||||
const arr = str.split(/(([\.\?!]+\s)|[.。?!\n•])/);
|
||||
|
||||
return arr[0];
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user