Skip to content

Commit

Permalink
fix: remove markdown table syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Sep 17, 2020
1 parent de7c05a commit 2cab309
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions actions/__tests__/preprocess.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ describe('removeSymbols', () => {
in: 'this is a pre-processing-method',
out: 'this is a pre-processing-method'
},
{
in: '| :--- | :---: | ---: |',
out: ''
},
{
in: 'GitHub Actions | GitHub Help | github.com',
out: 'GitHub Actions GitHub Help github.com'
Expand Down
1 change: 1 addition & 0 deletions actions/src/preprocess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export function removeSymbols(txt: string): string {
.replace(/;$/g, ' ')
.replace(/\s-\s/g, ' ')
.replace(/-$/g, ' ')
.replace(/(--)+/g, ' ')
.replace(/\s\|\s/g, ' ')
.replace(/\|$/g, ' ')
.replace(/,\s/g, ' ')
Expand Down

0 comments on commit 2cab309

Please sign in to comment.