diff --git a/src/AliasCleaner.php b/src/AliasCleaner.php index 14c515b..ab7607e 100644 --- a/src/AliasCleaner.php +++ b/src/AliasCleaner.php @@ -278,6 +278,9 @@ class AliasCleaner implements AliasCleanerInterface { $output = mb_strtolower($output); } + // Remove any dot at the beginning. + $output = ltrim($output, '.'); + // Shorten to a logical place based on word boundaries. $output = Unicode::truncate($output, $this->cleanStringCache['maxlength'], TRUE);