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