if (matchPathEnds) {
parsedPattern = function (path: string, basename?: string) {
(options.equals(path, nativePath) || options.endsWith(path, nativePathEnd)) ||
!usingPosixSep && (options.equals(path, targetPath) || options.endsWith(path, targetPathEnd))
};
} else {
parsedPattern = function (path: string, basename?: string) {