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 Bauer
2026-02-16 17:46:24 +01:00
committed by GitHub
parent e9743cb70f
commit 95705f6c92

View File

@@ -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: () => () => {},