Skip to content

Commit fd92b4a

Browse files
committed
Correctly use picomatch dependency
Fixes #2484.
1 parent bec7c9e commit fd92b4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/line-numbers.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const micromatch = require('micromatch');
3+
const picomatch = require('picomatch');
44
const flatten = require('lodash/flatten');
55

66
const NUMBER_REGEX = /^\d+$/;
@@ -56,7 +56,7 @@ exports.splitPatternAndLineNumbers = splitPatternAndLineNumbers;
5656
function getApplicableLineNumbers(normalizedFilePath, filter) {
5757
return sortNumbersAscending(distinctArray(flatten(
5858
filter
59-
.filter(({pattern, lineNumbers}) => lineNumbers && micromatch.isMatch(normalizedFilePath, pattern))
59+
.filter(({pattern, lineNumbers}) => lineNumbers && picomatch.isMatch(normalizedFilePath, pattern))
6060
.map(({lineNumbers}) => lineNumbers)
6161
)));
6262
}

0 commit comments

Comments
 (0)