about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/follow_recommendations/components
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-13 09:12:14 -0500
committerClaire <claire.github-309c@sitedethib.com>2023-02-18 16:02:12 +0100
commit7e64eef73b62fcb1537181e66bcd3e5e25fcc665 (patch)
tree3cc08273c3f3d3c8519bef1663c0967e05e6ae1f /app/javascript/flavours/glitch/features/follow_recommendations/components
parent587f6b3b066360da37066063d659194d43fd7a59 (diff)
[Glitch] Enable ESLint no-useless-escape
Port db2c58d47ae0db8490a30cd3846f30e615c382b5 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/features/follow_recommendations/components')
-rw-r--r--app/javascript/flavours/glitch/features/follow_recommendations/components/account.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/follow_recommendations/components/account.js b/app/javascript/flavours/glitch/features/follow_recommendations/components/account.js
index 7c8a71879..81d39bd49 100644
--- a/app/javascript/flavours/glitch/features/follow_recommendations/components/account.js
+++ b/app/javascript/flavours/glitch/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];
 };