Minify_CSS_UriRewriter::removeDots PHP Method

removeDots() public static method

./" where possible from a root-relative URI
public static removeDots ( string $uri ) : string
$uri string
return string
    public static function removeDots($uri)
    {
        $uri = str_replace('/./', '/', $uri);
        // inspired by patch from Oleg Cherniy
        do {
            $uri = preg_replace('@/[^/]+/\\.\\./@', '/', $uri, 1, $changed);
        } while ($changed);
        return $uri;
    }