Skip to content

Commit

Permalink
Correctly use picomatch dependency
Browse files Browse the repository at this point in the history
Fixes #2484.
  • Loading branch information
novemberborn committed May 8, 2020
1 parent bec7c9e commit fd92b4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/line-numbers.js
@@ -1,6 +1,6 @@
'use strict';

const micromatch = require('micromatch');
const picomatch = require('picomatch');
const flatten = require('lodash/flatten');

const NUMBER_REGEX = /^\d+$/;
Expand Down Expand Up @@ -56,7 +56,7 @@ exports.splitPatternAndLineNumbers = splitPatternAndLineNumbers;
function getApplicableLineNumbers(normalizedFilePath, filter) {
return sortNumbersAscending(distinctArray(flatten(
filter
.filter(({pattern, lineNumbers}) => lineNumbers && micromatch.isMatch(normalizedFilePath, pattern))
.filter(({pattern, lineNumbers}) => lineNumbers && picomatch.isMatch(normalizedFilePath, pattern))
.map(({lineNumbers}) => lineNumbers)
)));
}
Expand Down

0 comments on commit fd92b4a

Please sign in to comment.