mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-25 08:33:41 +01:00
Fix eslint error (#14521)
This commit is contained in:
parent
b61e060501
commit
4a4d08f3a0
1 changed files with 2 additions and 2 deletions
|
@ -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 = () => {
|
||||||
'[' + 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;
|
||||||
|
|
Loading…
Reference in a new issue