Skip to content

Commit a97acf8

Browse files
committed
small improvement
1 parent baa7f68 commit a97acf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dictionary/misc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export function asComment(text: string): string {
22
return text
33
.replaceAll(/^/mg, "# ")
4-
.replaceAll(/^#\s*$/mg, "#");
4+
.replaceAll(/^#\s+$/mg, "#");
55
}

0 commit comments

Comments
 (0)