* Fix regex for S3 markdown and improve VLM model fallback
Update regex pattern for S3 markdown key and adjust fallback logic for VLM model retrieval.
[^)]+? → [^)>]+?:在排除列表中增加 > 字符
(${pattern}) → <?(${pattern})>?:URL 前后添加可选的 <> 包裹匹配
* Implement space replacement in S3 key handling
Add function to replace spaces with underscores in S3 key.
在 replaceParentheses 后新增 replaceSpaces,将所有空白字符(\s+)替换为下划线,避免新上传的文件产生含空格的 S3 key。
* Fix filename formatting tests in utils.test.ts
Updated test cases to ensure formatted filenames replace spaces with underscores and handle multiple spaces correctly.
更新 getFormatedFilename 的空格文件名测试期望
更新真实场景的测试期望
新增 5 个空格替换测试用例(单独替换、括号+空格组合、连续空格、首尾空格等场景)
* fix: handle S3 markdown key edge cases
---------
Co-authored-by: Xianquan <whoeverimf5@gmail.com>
| Name |
Last commit
|
Last Update |
|---|---|---|
| .agents | Loading commit data... | |
| .codex/design | Loading commit data... | |
| .forgejo/workflows | Loading commit data... | |
| .github | Loading commit data... | |
| .husky | Loading commit data... | |
| .vscode | Loading commit data... | |
| bin | Loading commit data... | |
| deploy | Loading commit data... | |
| document | Loading commit data... | |
| packages | Loading commit data... | |
| pro @ 7d3e9e1a | ||
| projects | Loading commit data... | |
| scripts | Loading commit data... | |
| sdk | Loading commit data... | |
| test | Loading commit data... | |
| .dockerignore | Loading commit data... | |
| .gitignore | Loading commit data... | |
| .gitmodules | Loading commit data... | |
| .imgbotconfig | Loading commit data... | |
| .npmrc | Loading commit data... | |
| .prettierignore | Loading commit data... | |
| .prettierrc.js | Loading commit data... | |
| AGENTS.md | Loading commit data... | |
| LICENSE | Loading commit data... | |
| Makefile | Loading commit data... | |
| README.md | Loading commit data... | |
| README_en.md | Loading commit data... | |
| README_id.md | Loading commit data... | |
| README_ja.md | Loading commit data... | |
| README_th.md | Loading commit data... | |
| README_vi.md | Loading commit data... | |
| SECURITY.md | Loading commit data... | |
| dev.md | Loading commit data... | |
| eslint.config.mjs | Loading commit data... | |
| lint-staged.config.mjs | Loading commit data... | |
| package.json | Loading commit data... | |
| pnpm-lock.yaml | Loading commit data... | |
| pnpm-workspace.yaml | Loading commit data... | |
| tsconfig.json | Loading commit data... | |
| turbo.json | Loading commit data... | |
| vitest.config.mts | Loading commit data... |