Skip to content

Commit 5b34e7f

Browse files
committed
fix stripHighlightComments regex
1 parent 558bdeb commit 5b34e7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/markdown/formatters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export function unescapeMarkdown(text: string): string {
215215
export function stripHighlightComments(code: string): string {
216216
return code
217217
.split("\n")
218-
.map((line) => line.replace(/\s*\/\/\s*highlight-(line|start|end)/, ""))
218+
.map((line) => line.replace(/\/\/\s*highlight-(line|start|end)/, ""))
219219
.join("\n")
220220
}
221221

0 commit comments

Comments
 (0)