зеркало из https://github.com/github/gemoji.git
Fix Ruby 2.6 breakage (#255)
Beginless ranges are a Ruby 2.7 feature and should be avoided in this gem which has `required_ruby_version = '> 1.9'`.
This commit is contained in:
Родитель
ac35c33c44
Коммит
33caddce20
|
@ -51,7 +51,7 @@ module Emoji
|
|||
SKIN_TONES.map do |modifier|
|
||||
if idx
|
||||
# insert modifier before zero-width joiner
|
||||
raw_normalized[...idx] + modifier + raw_normalized[idx..]
|
||||
raw_normalized[0...idx] + modifier + raw_normalized[idx..nil]
|
||||
else
|
||||
raw_normalized + modifier
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче