Skip to content
This repository was archived by the owner on Feb 26, 2021. It is now read-only.

Commit 24c3acd

Browse files
committed
Fix judgement parsing
1 parent d1f8eb3 commit 24c3acd

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

lib/parser/view.js

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/parser/view.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ function concatItems(lines: string[]): string[] {
6464
// banananananananananananananananana
6565
// : Banana
6666
const reallyLongTermIdentifier = /^\S+$/;
67-
const restOfTheJudgement = /^\s*\:\s* \S*$/;
67+
const restOfTheJudgement = /^\s*\:\s* \S*/;
68+
69+
// console.log(`%c${line}`, 'color: green')
70+
// console.log(`reallyLongTermIdentifier: ${reallyLongTermIdentifier.test(line)}`)
71+
// console.log(`restOfTheJudgement: ${(nextLine && restOfTheJudgement.test(nextLine))}`)
6872

6973
return goal.test(line)
7074
|| have.test(line)

0 commit comments

Comments
 (0)