[Glitch] Enable ESLint no-useless-escape

Port db2c58d47a to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Nick Schonning
2023-02-13 09:12:14 -05:00
committed by Claire
parent 587f6b3b06
commit 7e64eef73b
6 changed files with 6 additions and 6 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];
};