mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 13:13:22 +08:00
fixed small rubocop error
This commit is contained in:
parent
cf66d94d45
commit
e943df9176
1 changed files with 3 additions and 1 deletions
|
@ -153,7 +153,9 @@ module ProtocolsIoHelper
|
|||
def pio_eval_title_len(tekst)
|
||||
tekst += ' ' if tekst.length < Constants::NAME_MIN_LENGTH
|
||||
if tekst.length > Constants::NAME_MAX_LENGTH
|
||||
tekst = tekst[0..(Constants::NAME_MAX_LENGTH - 60)] + t('protocols.protocols_io_import.too_long')
|
||||
tekst =
|
||||
tekst[0..(Constants::NAME_MAX_LENGTH - 60)] +
|
||||
t('protocols.protocols_io_import.too_long')
|
||||
@toolong = true
|
||||
end
|
||||
tekst
|
||||
|
|
Loading…
Reference in a new issue