protected function normalizeUrl() { if (preg_match('~github\\.com/(?:[^/]+)/([a-z0-9]+)/?~i', $this->url, $matches)) { $this->url->overwrite('https://gist.github.com/' . $matches['1']); } }