DmitryDulepov\Realurl\Encoder\UrlEncoder::trimMultipleSlashes PHP Method

trimMultipleSlashes() protected method

Removes multiple slashes at the end of the encoded URL.
protected trimMultipleSlashes ( )
    protected function trimMultipleSlashes()
    {
        $regExp = '~(/{2,})$~';
        if (preg_match($regExp, $this->encodedUrl)) {
            $this->encodedUrl = preg_replace($regExp, '/', $this->encodedUrl);
        }
    }