}elseif(T2.test(pattern)){// common pattern: **/some.txt just need basename check
}elseif(T2.test(pattern)){// common pattern: **/some.txt just need basename check
constbase=pattern.substr(3);// '**/'.length === 3
parsedPattern=trivia2(pattern,pattern);
constslashBase=`/${base}`;
}elseif(options.trimForExclusions&&strings.endsWith(pattern,'/**')&&T2.test(trimmedPattern=pattern.substr(0,pattern.length-3))){// common pattern: **/some/** for exclusions just need basename check
constbackslashBase=`\\${base}`;
parsedPattern=trivia2(trimmedPattern,pattern);
parsedPattern=function(path,basename){
}elseif((options.trimForExclusions?T3_2:T3).test(pattern)){// repetition of common patterns (see above) {**/*.txt,**/*.png}