diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-13 09:12:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-13 15:12:14 +0100 |
commit | db2c58d47ae0db8490a30cd3846f30e615c382b5 (patch) | |
tree | a269d4db3ad97704d9c57ae88f03cca309b56fbe /app/javascript/mastodon/features/follow_recommendations/components/account.js | |
parent | 4da5f77d929d6b83c134cae1eefbc8ba2db752f8 (diff) |
Enable ESLint no-useless-escape (#23311)
Diffstat (limited to 'app/javascript/mastodon/features/follow_recommendations/components/account.js')
-rw-r--r-- | app/javascript/mastodon/features/follow_recommendations/components/account.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/follow_recommendations/components/account.js b/app/javascript/mastodon/features/follow_recommendations/components/account.js index daaa2f99e..ddd0c8baa 100644 --- a/app/javascript/mastodon/features/follow_recommendations/components/account.js +++ b/app/javascript/mastodon/features/follow_recommendations/components/account.js @@ -27,7 +27,7 @@ const makeMapStateToProps = () => { }; const getFirstSentence = str => { - const arr = str.split(/(([\.\?!]+\s)|[.。?!\n•])/); + const arr = str.split(/(([.?!]+\s)|[.。?!\n•])/); return arr[0]; }; |