function trivia4and5(path, pattern, matchPathEnds) {
    var nativePath = paths.nativeSep !== paths.sep ? path.replace(ALL_FORWARD_SLASHES, paths.nativeSep) : path;
    var nativePathEnd = paths.nativeSep + nativePath;
    var parsedPattern = matchPathEnds ? function (path, basename) {
        return path && (path === nativePath || strings.endsWith(path, nativePathEnd)) ? pattern : null;
    } : function (path, basename) {
        return path && path === nativePath ? pattern : null;
    };
    parsedPattern.allPaths = [(matchPathEnds ? '*/' : './') + path];
    return parsedPattern;
}
// common patterns: **/something/else just need endsWith check, something/else just needs and equals check
common patterns: **/something/else just need endsWith check, something/else just needs and equals check
common patterns : ** / something / else just need endsWith check something / else just needs and equals check
function trivia4and5(path, pattern, matchPathEnds) {
    var nativePath = paths.nativeSep !== paths.sep ? path.replace(ALL_FORWARD_SLASHES, paths.nativeSep) : path;
    var nativePathEnd = paths.nativeSep + nativePath;
    var parsedPattern = matchPathEnds ? function (path, basename) {
        return path && (path === nativePath || strings.endsWith(path, nativePathEnd)) ? pattern : null;
    } : function (path, basename) {
        return path && path === nativePath ? pattern : null;
    };
    parsedPattern.allPaths = [(matchPathEnds ? '*/' : './') + path];
    return parsedPattern;
}
function trivia4and5 ( path , pattern , matchPathEnds ) { var nativePath = paths . nativeSep !== paths . sep ? path . replace ( ALL_FORWARD_SLASHES , paths . nativeSep ) : path ; var nativePathEnd = paths . nativeSep + nativePath ; var parsedPattern = matchPathEnds ? function ( path , basename ) { return path && ( path === nativePath || strings . endsWith ( path , nativePathEnd ) ) ? pattern : null ; } : function ( path , basename ) { return path && path === nativePath ? pattern : null ; } ; parsedPattern . allPaths = [ ( matchPathEnds ? '*/' : './' ) + path ] ; return parsedPattern ; }
common patterns: **/something/else just need endsWith check, something/else just needs and equals check
common patterns : ** / something / else just need endsWith check something / else just needs and equals check