Skip to content

Commit ec15fa5

Browse files
committed
update match, update setup
1 parent 3527c72 commit ec15fa5

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/build/parser/match.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var regex = {
99
'###': match('#', 3),
1010
'+': match('\\+', 1),
1111
'```': match('`', 3),
12-
'action': /^@(action|test|hint)/,
12+
'action': /^@(action|test|hint|openConsole)/,
1313
'import': /^@import\((.+)\)$/,
1414
'onPageComplete': /^(@onPageComplete.+)/
1515
};

setup/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"node" : ">=0.10.3"
1515
},
1616
"dependencies": {
17-
"mocha-coderoad": "^0.5.1"
17+
"mocha-coderoad": "^0.5.4"
1818
},
1919
"license": "MIT",
2020
"config": {

src/build/parser/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function doAction(type: CR.OutputAction, isArray, actionValue, result, line, {ch
2727
}
2828

2929
export function addToTasks(result, line, index) {
30-
let action: CR.TaskAction|string = Match.isAction(line); // 'action'|'test'|'hint'|'continue'
30+
let action: CR.TaskAction|string = Match.isAction(line); // 'action'|'test'|'hint'|'openConsole'
3131
const {chapter, page, task} = index;
3232
let currentTask: CR.Task = result.chapters[chapter].pages[page].tasks[task];
3333
let trimmedContent: string = line.slice(action.length + 2, line.length - 1); // content between brackets

src/build/parser/match.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var regex = {
1010
'###': match('#', 3),
1111
'+': match('\\+', 1),
1212
'```': match('`', 3),
13-
'action': /^@(action|test|hint)/,
13+
'action': /^@(action|test|hint|openConsole)/,
1414
'import': /^@import\((.+)\)$/,
1515
'onPageComplete': /^(@onPageComplete.+)/
1616
};

0 commit comments

Comments
 (0)