Skip to content

Commit c6d6a08

Browse files
author
LOU Xun
committed
Global regex
1 parent fdef839 commit c6d6a08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ showdown.setFlavor('github');
66

77
try {
88
const markdownText = core.getInput('text');
9-
let re = /<details>[\s\S]*?<\/details>/
9+
let re = /<details>[\s\S]*?<\/details>/g;
1010
const converter = new showdown.Converter();
1111
const html = converter.makeHtml(markdownText.replace(re, ""));
1212

0 commit comments

Comments
 (0)