Skip to content

Commit

Permalink
cli: escape chalk parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
43081j committed Jul 31, 2018
1 parent d1dbbd5 commit b828f72
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/cli/src/commands/lint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,11 @@ export class LintCommand implements Command {
content: collectionsDocs.join('\n\n'),
raw: true
},
{header: 'Lint Rules', content: rulesDocs.join('\n\n'), raw: true}
{
header: 'Lint Rules',
content: rulesDocs.join('\n\n').replace(/[{}\\]/g, '\\$&'),
raw: true
}
];
}

Expand Down

0 comments on commit b828f72

Please sign in to comment.