Fix newlines not being considered sentence separators in account note (#16079)
Also bulletslolsob-rspec
parent
37183113d4
commit
4bffe10987
|
@ -27,7 +27,7 @@ const makeMapStateToProps = () => {
|
|||
};
|
||||
|
||||
const getFirstSentence = str => {
|
||||
const arr = str.split(/(([\.\?!]+\s)|[.。?!])/);
|
||||
const arr = str.split(/(([\.\?!]+\s)|[.。?!\n•])/);
|
||||
|
||||
return arr[0];
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue