Commit c66eabc8 authored by Vitali Tatarintev's avatar Vitali Tatarintev

Fix misleading comment

`gsub(/\/\z/, '')` removes a leading slash (`/`) not a space

```
> 'https://gitlab.com/'.gsub(/\/\z/, '')
=> "https://gitlab.com"

> 'https://gitlab.com/  '.gsub(/\/\z/, '')
=> "https://gitlab.com/  "
```
parent 143bf260
......@@ -206,7 +206,7 @@ module Sentry
uri = URI(url)
uri.path.squeeze!('/')
# Remove trailing spaces
# Remove trailing slash
uri = uri.to_s.gsub(/\/\z/, '')
uri
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment