.search -> .match

This commit is contained in:
Regalijan 2023-12-30 00:50:24 -05:00
parent e2669ccc78
commit dcd749d099
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -26,7 +26,7 @@ export async function onRequestPost(context: RequestContext) {
if ( if (
typeof id !== "string" || typeof id !== "string" ||
id.search(/\D/) || id.match(/\D/) ||
id.length > 19 || id.length > 19 ||
id.length < 17 id.length < 17
) )