Update rubocop to version 1.76.2 (#35070)

This commit is contained in:
Matt Jankowski 2025-06-18 05:54:17 -04:00 committed by GitHub
commit b1fe35d7d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 6 deletions

View file

@ -58,7 +58,7 @@ class TextFormatter
prefix = url.match(URL_PREFIX_REGEX).to_s
display_url = url[prefix.length, 30]
suffix = url[prefix.length + 30..]
suffix = url[(prefix.length + 30)..]
cutoff = url[prefix.length..].length > 30
if suffix && suffix.length == 1 # revert truncation to account for ellipsis