fix regex
This commit is contained in:
parent
e98d6f75c8
commit
726c612b52
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue