diff --git a/functions/api/events-team/team-members/user.ts b/functions/api/events-team/team-members/user.ts index c689dcd..fdc7bbe 100644 --- a/functions/api/events-team/team-members/user.ts +++ b/functions/api/events-team/team-members/user.ts @@ -26,7 +26,7 @@ export async function onRequestPost(context: RequestContext) { if ( typeof id !== "string" || - id.search(/\D/) || + id.match(/\D/) || id.length > 19 || id.length < 17 )