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