Skip to content

Commit

Permalink
cli: update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
43081j committed Aug 28, 2018
1 parent 94a9a83 commit 6fe0320
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Changelog

<!-- ## Unreleased -->
<!-- Add new, unreleased items here. -->
## Unreleased
* Fix an issue where we were passing lint rule help text through chalk
with unescaped chalk-specific syntax, causing chalk parsing errors.

## v1.8.0 [08-15-2018]
* Fix a case where the CustomElementsEs5Adapter script was not added to the
Expand Down
4 changes: 4 additions & 0 deletions packages/cli/src/commands/lint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ export class LintCommand implements Command {
},
{
header: 'Lint Rules',
// Here we replace special characters with chalk's escape
// syntax (`\$&`) to avoid chalk trying to re-process our input.
// This is needed because chalk supports a form of `{var}`
// interpolation.
content: rulesDocs.join('\n\n').replace(/[{}\\]/g, '\\$&'),
raw: true
}
Expand Down

0 comments on commit 6fe0320

Please sign in to comment.