fix regex

This commit is contained in:
Moon Man 2023-12-27 11:21:16 -05:00
parent e98d6f75c8
commit 726c612b52
1 changed files with 1 additions and 1 deletions

View File

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