mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
fix: mention with hyphen
This commit is contained in:
parent
51fc0c9cc9
commit
e89853c56d
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