1- import picomatch , { type Matcher } from 'picomatch ' ;
1+ import match , { type Matcher } from 'unmatch ' ;
22
33// #region PARTIAL MATCHER
44export interface PartialMatcherOptions {
@@ -18,7 +18,7 @@ export function getPartialMatcher(patterns: string[], options?: PartialMatcherOp
1818 const partsCount = parts . length ;
1919 const partRegexes = Array ( partsCount ) ;
2020 for ( let j = 0 ; j < partsCount ; j ++ ) {
21- partRegexes [ j ] = picomatch . makeRe ( parts [ j ] , options ) ;
21+ partRegexes [ j ] = match . makeRe ( parts [ j ] , options ) ;
2222 }
2323 regexes [ i ] = partRegexes ;
2424 }
@@ -72,7 +72,7 @@ const splitPatternOptions = { parts: true };
7272
7373// if a pattern has no slashes outside glob symbols, results.parts is []
7474export function splitPattern ( path : string ) : string [ ] {
75- const result = picomatch . scan ( path , splitPatternOptions ) ;
75+ const result = match . scan ( path , splitPatternOptions ) ;
7676 return result . parts ?. length ? result . parts : [ path ] ;
7777}
7878// #endregion
@@ -129,7 +129,7 @@ export function isDynamicPattern(pattern: string, options?: { caseSensitiveMatch
129129 return true ;
130130 }
131131
132- const scan = picomatch . scan ( pattern ) ;
132+ const scan = match . scan ( pattern ) ;
133133 return scan . isGlob || scan . negated ;
134134}
135135// #endregion
0 commit comments