.search -> .match
This commit is contained in:
@ -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
|
||||
)
|
||||
|
Reference in New Issue
Block a user