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:
@@ -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: () => () => {},
|
||||||
|
|||||||
Reference in New Issue
Block a user