mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Merge branch 'fix-mention' into 'main'
fix: mention with hyphen See merge request soapbox-pub/ditto!619
This commit is contained in:
commit
1204dc722f
1 changed files with 1 additions and 1 deletions
|
|
@ -151,7 +151,7 @@ const createStatusController: AppController = async (c) => {
|
|||
|
||||
let content = await asyncReplaceAll(
|
||||
data.status ?? '',
|
||||
/(?<![\w/])@([\w@+._]+)(?![\w/\.])/g,
|
||||
/(?<![\w/])@([\w@+._-]+)(?![\w/\.])/g,
|
||||
async (match, username) => {
|
||||
const pubkey = await lookupPubkey(username);
|
||||
if (!pubkey) return match;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue