Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd810ba9

Browse files
committed
Make the level summary optional
1 parent92c534f commitd810ba9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎src/main.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function parseContent(md) {
3939

4040
// Identify each part of the content
4141
parts.forEach(section=>{
42-
constlevelRegex=/^(##\s(?<levelId>L\d+)\s(?<levelTitle>.*)\n*>\s+(?<levelSummary>.*)\n+(?<levelContent>[^]*))/;
42+
constlevelRegex=/^(##\s(?<levelId>L\d+)\s(?<levelTitle>.*)\n*(>\s*(?<levelSummary>.*))?\n+(?<levelContent>[^]*))/;
4343
conststepRegex=/^(###\s(?<stepId>(?<levelId>L\d+)S\d+)\s(?<stepTitle>.*)\n+(?<stepContent>[^]*))/;
4444

4545
constlevelMatch=section.match(levelRegex);
@@ -149,7 +149,6 @@ async function build({ repo, codeBranch, setupBranch, isLocal }) {
149149
constisRepo=awaitgitTest.checkIsRepo();
150150

151151
if(isRepo){
152-
// Add the new one as a submodule
153152
conststartCleanup=cleanupFiles(workingDir);
154153

155154
if(startCleanup){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp