🎨 完善正则脚本功能

Signed-off-by: Echo <1711788888@qq.com>
This commit is contained in:
2026-03-02 00:51:23 +08:00
parent 23396caeeb
commit de6015c77e
3 changed files with 93 additions and 14 deletions

View File

@@ -107,7 +107,7 @@ export const regexScriptApi = {
},
// 测试正则脚本
testRegexScript: (id: number, testString: string): Promise<{ data: { result: string } }> => {
testRegexScript: (id: number, testString: string): Promise<{ data: { original: string; result: string; success: boolean; error?: string } }> => {
return apiClient.post(`/app/regex/${id}/test`, { testString })
},
}