Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider 4a4d08f3 rédigé par abcang's avatar abcang Validation de GitHub
Parcourir les fichiers

Fix eslint error (#14521)

parent b61e0605
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -7,7 +7,7 @@ import { me } from '../../../initial_state'; ...@@ -7,7 +7,7 @@ import { me } from '../../../initial_state';
const buildHashtagRE = () => { const buildHashtagRE = () => {
try { try {
const HASHTAG_SEPARATORS = "_\\u00b7\\u200c"; const HASHTAG_SEPARATORS = '_\\u00b7\\u200c';
const ALPHA = '\\p{L}\\p{M}'; const ALPHA = '\\p{L}\\p{M}';
const WORD = '\\p{L}\\p{M}\\p{N}\\p{Pc}'; const WORD = '\\p{L}\\p{M}\\p{N}\\p{Pc}';
return new RegExp( return new RegExp(
...@@ -21,7 +21,7 @@ const buildHashtagRE = () => { ...@@ -21,7 +21,7 @@ const buildHashtagRE = () => {
'[' + WORD + '_]*' + '[' + WORD + '_]*' +
'[' + ALPHA + ']' + '[' + ALPHA + ']' +
'[' + WORD + '_]*' + '[' + WORD + '_]*' +
'))', 'iu' '))', 'iu',
); );
} catch { } catch {
return /(?:^|[^\/\)\w])#(\w*[a-zA-Z·]\w*)/i; return /(?:^|[^\/\)\w])#(\w*[a-zA-Z·]\w*)/i;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter