Enable ESLint no-useless-escape (#23311)
This commit is contained in:
@ -27,7 +27,7 @@ const makeMapStateToProps = () => {
|
||||
};
|
||||
|
||||
const getFirstSentence = str => {
|
||||
const arr = str.split(/(([\.\?!]+\s)|[.。?!\n•])/);
|
||||
const arr = str.split(/(([.?!]+\s)|[.。?!\n•])/);
|
||||
|
||||
return arr[0];
|
||||
};
|
||||
|
Reference in New Issue
Block a user