Enable ESLint no-useless-escape (#23311)

This commit is contained in:
Nick Schonning 2023-02-13 09:12:14 -05:00 committed by GitHub
commit db2c58d47a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 11 additions and 12 deletions

View file

@ -27,7 +27,7 @@ const makeMapStateToProps = () => {
};
const getFirstSentence = str => {
const arr = str.split(/(([\.\?!]+\s)|[.。?!\n•])/);
const arr = str.split(/(([.?!]+\s)|[.。?!\n•])/);
return arr[0];
};