2
0

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
parent adf01b021c
commit b1fe35d7d2
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