about summary refs log tree commit diff
diff options
context:
space:
mode:
authorabcang <abcang1015@gmail.com>2020-08-07 17:40:33 +0900
committerGitHub <noreply@github.com>2020-08-07 10:40:33 +0200
commit4a4d08f3a078fbc6380a786145cc05f67c1f6e90 (patch)
treeb99af234318cdca2595ce2f416bc02bf082f2a7b
parentb61e060501f863ef12008e961b93e019f852e0b6 (diff)
Fix eslint error (#14521)
-rw-r--r--app/javascript/mastodon/features/compose/containers/warning_container.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/mastodon/features/compose/containers/warning_container.js b/app/javascript/mastodon/features/compose/containers/warning_container.js
index 2977ef5df..bf0660ea9 100644
--- a/app/javascript/mastodon/features/compose/containers/warning_container.js
+++ b/app/javascript/mastodon/features/compose/containers/warning_container.js
@@ -7,7 +7,7 @@ import { me } from '../../../initial_state';
 
 const buildHashtagRE = () => {
   try {
-    const HASHTAG_SEPARATORS = "_\\u00b7\\u200c";
+    const HASHTAG_SEPARATORS = '_\\u00b7\\u200c';
     const ALPHA = '\\p{L}\\p{M}';
     const WORD = '\\p{L}\\p{M}\\p{N}\\p{Pc}';
     return new RegExp(
@@ -21,7 +21,7 @@ const buildHashtagRE = () => {
       '[' + WORD + '_]*' +
       '[' + ALPHA + ']' +
       '[' + WORD + '_]*' +
-      '))', 'iu'
+      '))', 'iu',
     );
   } catch {
     return /(?:^|[^\/\)\w])#(\w*[a-zA-Z·]\w*)/i;