Skip to content

Commit

Permalink
fix: ensureTrailingSlash removes leading slash
Browse files Browse the repository at this point in the history
resolves #10
  • Loading branch information
Michael Cuénez committed Apr 21, 2022
1 parent d4aad4d commit fbd4206
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/Utility/UrlUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class UrlUtility
*/
public static function ensureTrailingSlash(string $url)
{
$url = self::removeLeadingSlash($url);
$url = self::removeTrailingSlash($url);
return $url . Php::URL_DELIMITER;
}

Expand Down

0 comments on commit fbd4206

Please sign in to comment.