Potential fix for code scanning alert no. 4: Incomplete string escaping or encoding

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
Georg BauerandCopilot Autofix powered by AI authored and GitHub committed 2026-02-16 17:46:24 +01:00
1 parent e9743cb70f
commit 95705f6c92
1 file changed
+1 -1
@@ -79,7 +79,7 @@ vi.mock('@milkdown/kit/utils', () => ({
$remark: () => ({}), $remark: () => ({}),
$prose: () => ({}), $prose: () => ({}),
replaceAll: (content: string) => () => { replaceAll: (content: string) => () => {
const normalized = content.replace('\n', '\n\n'); const normalized = content.replace(/\n/g, '\n\n');
markdownUpdatedHandler?.({}, normalized, ''); markdownUpdatedHandler?.({}, normalized, '');
}, },
callCommand: () => () => {}, callCommand: () => () => {},