From 726c612b525d36d5d23b5d8ffd7b760431444e0f Mon Sep 17 00:00:00 2001 From: Moon Man Date: Wed, 27 Dec 2023 11:21:16 -0500 Subject: [PATCH] fix regex --- src/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/user.ts b/src/user.ts index c0bbdeb..541c826 100644 --- a/src/user.ts +++ b/src/user.ts @@ -32,7 +32,7 @@ export const getById = async (id: number) => .first() ; -const EXTRACT_NICKNAME = new RegExp("/" + fillRoute("actor", "(.+)").replaceAll("/", "\\/") + "/"); +const EXTRACT_NICKNAME = new RegExp(fillRoute("actor", "(.+)").replaceAll("/", "\\/")); export const getByActor = async (actor: string) => { const matchArray = actor.match(EXTRACT_NICKNAME);