diff --git a/src/ExternalURL.php b/src/ExternalURL.php index 61fe194..6d31f14 100644 --- a/src/ExternalURL.php +++ b/src/ExternalURL.php @@ -50,7 +50,7 @@ public function Domain() */ public function NoWWW() { - return ltrim($this->value, "www."); + return preg_replace('#^www\.(.+\.)#i', '$1', $this->value); } /**