Update rubocop to version 1.76.2 (#35070)
This commit is contained in:
parent
adf01b021c
commit
b1fe35d7d2
4 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue