mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
Fixes #11605. The existing guard `if (!text)` only catches falsy values. When a truthy non-string value (e.g. number or object from an API response) is passed through OpenMarkdownPreviewButton, it passes the guard and text.replace() throws "TypeError: n.replace is not a function". Changed the guard to `typeof text !== "string"` so any non-string value returns 0 early. Added test cases for non-string inputs. |
||
|---|---|---|
| .. | ||
| audio | ||
| public | ||
| src | ||
| .gitignore | ||
| components.json | ||
| eslint.config.mjs | ||
| index.html | ||
| package.json | ||
| tsconfig.json | ||
| turbo.json | ||
| vite.config.ts | ||
| vitest.config.ts | ||
| vitest.setup.ts | ||