fix: mention with hyphen

This commit is contained in:
P. Reis 2025-01-21 13:12:39 -03:00
parent 51fc0c9cc9
commit e89853c56d

View file

@ -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;