src/Routing/Route.php
protected function normalizeUri($requestUri)
    {
        $len = strlen($requestUri);

        if ($len == 0) {
            return '/';
        }

        if ($len == 1) {
            return $requestUri;
        }

        return trim($requestUri, '/');
    }
protected function normalizeUri($requestUri)
    {
        $len = strlen($requestUri);

        if ($len == 0) {
            return '/';
        }

        if ($len == 1) {
            return $requestUri;
        }

        return trim($requestUri, '/');
    }
protected function normalizeUri ( $ requestUri ) { $ len = strlen ( $ requestUri ) ; if ( $ len == 0 ) { return '/' ; } if ( $ len == 1 ) { return $ requestUri ; } return trim ( $ requestUri , '/' ) ; }
Prepare uri for regex match

@param $requestUri
@return string
Prepare uri for regex match