Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 43b20a6

Browse files
committed
Fix snippet script
1 parent a60a7ba commit 43b20a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/separate-snippets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function processSnippet(
5050
if (line.match(RE_REQUIRE)) {
5151
outputLines.push(line.replace(RE_REQUIRE, `import {$1} from $2`));
5252
} else if (line.match(RE_START_SNIPPET)) {
53-
outputLines.push(line.replace(RE_START_SNIPPET, `[START modular_$1]`));
53+
outputLines.push(line.replace(RE_START_SNIPPET, `[START ${snippetPrefix}$1]`));
5454
} else if (line.match(RE_END_SNIPPET)) {
5555
outputLines.push(
5656
line.replace(RE_END_SNIPPET, `[END ${snippetPrefix}$1]`)

0 commit comments

Comments
 (0)