We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bec7c9e commit fd92b4aCopy full SHA for fd92b4a
lib/line-numbers.js
@@ -1,6 +1,6 @@
1
'use strict';
2
3
-const micromatch = require('micromatch');
+const picomatch = require('picomatch');
4
const flatten = require('lodash/flatten');
5
6
const NUMBER_REGEX = /^\d+$/;
@@ -56,7 +56,7 @@ exports.splitPatternAndLineNumbers = splitPatternAndLineNumbers;
56
function getApplicableLineNumbers(normalizedFilePath, filter) {
57
return sortNumbersAscending(distinctArray(flatten(
58
filter
59
- .filter(({pattern, lineNumbers}) => lineNumbers && micromatch.isMatch(normalizedFilePath, pattern))
+ .filter(({pattern, lineNumbers}) => lineNumbers && picomatch.isMatch(normalizedFilePath, pattern))
60
.map(({lineNumbers}) => lineNumbers)
61
)));
62
}
0 commit comments