From 600c8b2e30361b6b4f94d532f5f471e5c8f8da40 Mon Sep 17 00:00:00 2001 From: lenmotion Date: Fri, 24 Apr 2026 10:58:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.api.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/index.api.ts b/index.api.ts index 3760793..56bc8df 100644 --- a/index.api.ts +++ b/index.api.ts @@ -437,12 +437,6 @@ function normalizeMockFilePath(filePath: string): string { if (path.isAbsolute(relative)) { throw new Error("filePath must be a relative path"); } - const innerPath = relative.replace(/^mock\//, ""); - if (!/^[A-Za-z0-9/.]+$/.test(innerPath)) { - throw new Error( - "filePath only allows English letters, numbers, '/', and '.'", - ); - } return relative; }