From 923b21610fad17c4d2261d0b9c79b4a61574e0de Mon Sep 17 00:00:00 2001 From: ekzyis Date: Sun, 23 Jun 2024 19:14:11 +0200 Subject: [PATCH] Fix item mention ref pattern (#1244) --- api/resolvers/item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/resolvers/item.js b/api/resolvers/item.js index ca9b35c2..2d6949a4 100644 --- a/api/resolvers/item.js +++ b/api/resolvers/item.js @@ -1185,7 +1185,7 @@ export default { } const namePattern = /\B@[\w_]+/gi -const refPattern = new RegExp(`${process.env.NEXT_PUBLIC_URL}/items/\\d+.*`, 'gi') +const refPattern = new RegExp(`${process.env.NEXT_PUBLIC_URL}/items/\\d+[a-zA-Z0-9/?=]*`, 'gi') export const createMentions = async (item, models) => { // if we miss a mention, in the rare circumstance there's some kind of