mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-24 00:38:49 +01:00
Allow more chars in hashtag regex
Still best-effort for now
This commit is contained in:
parent
fe0efe8310
commit
398cbbefac
1 changed files with 2 additions and 2 deletions
|
@ -142,8 +142,8 @@ const MENTION_RE = new RegExp(
|
||||||
|
|
||||||
// AI-generated, all other regexes are too complicated
|
// AI-generated, all other regexes are too complicated
|
||||||
const HASHTAG_RE = new RegExp(
|
const HASHTAG_RE = new RegExp(
|
||||||
`(^|[^=\\/\\w])(#[a-z0-9_]+([a-z0-9_.]+[a-z0-9_]+)?)(?![\\/\\w])`,
|
`(^|[^=\\/\\w])(#[\\p{L}\\p{N}_]+([\\p{L}\\p{N}_.]+[\\p{L}\\p{N}_]+)?)(?![\\/\\w])`,
|
||||||
'ig',
|
'iug',
|
||||||
);
|
);
|
||||||
|
|
||||||
// https://github.com/mastodon/mastodon/blob/23e32a4b3031d1da8b911e0145d61b4dd47c4f96/app/models/custom_emoji.rb#L31
|
// https://github.com/mastodon/mastodon/blob/23e32a4b3031d1da8b911e0145d61b4dd47c4f96/app/models/custom_emoji.rb#L31
|
||||||
|
|
Loading…
Reference in a new issue