src/RecipeInstaller.php
protected function globToRegexp($glob)
    {
        $sourceParts = explode('*', $glob);
        $regexParts = array_map(function ($part) {
            return preg_quote($part, '#');
        }, $sourceParts);
        return implode('(.+)', $regexParts);
    }
protected function globToRegexp($glob)
    {
        $sourceParts = explode('*', $glob);
        $regexParts = array_map(function ($part) {
            return preg_quote($part, '#');
        }, $sourceParts);
        return implode('(.+)', $regexParts);
    }
protected function globToRegexp ( $ glob ) { $ sourceParts = explode ( '*' , $ glob ) ; $ regexParts = array_map ( function ( $ part ) { return preg_quote ( $ part , '#' ) ; } , $ sourceParts ) ; return implode ( '(.+)' , $ regexParts ) ; }
Convert glob pattern to regexp

@param string $glob
@return string
Convert glob pattern to regexp