Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: JustinBeckwith/linkinator
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.12.0
Choose a base ref
...
head repository: JustinBeckwith/linkinator
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.12.1
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Dec 29, 2020

  1. Copy the full SHA
    a7d8625 View commit details
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/cli.ts
  2. +1 −1 test/zcli.ts
2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
@@ -135,7 +135,7 @@ async function main() {
};
if (flags.skip) {
if (typeof flags.skip === 'string') {
opts.linksToSkip = flags.skip.split(' ').filter(x => !!x);
opts.linksToSkip = flags.skip.split(/[\s,]+/).filter(x => !!x);
} else if (Array.isArray(flags.skip)) {
opts.linksToSkip = flags.skip;
}
2 changes: 1 addition & 1 deletion test/zcli.ts
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@ describe('cli', () => {
'--verbosity',
'INFO',
'--skip',
'LICENSE.md',
'"LICENSE.md, unlinked.md"',
'test/fixtures/markdown/README.md',
]);
assert.match(res.stdout, /\[SKP\]/);