Skip to content

Commit

Permalink
[ruby/reline] Prevent a warning for `warning: literal string will be
Browse files Browse the repository at this point in the history
frozen in the future`
(ruby/reline#744)

ruby/reline@69c95c8b6a
  • Loading branch information
ima1zumi authored and rm155 committed Sep 8, 2024
1 parent cc43b60 commit 660f669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/reline/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class Reline::TestCase < Test::Unit::TestCase
end
}.join
rescue Encoding::UndefinedConversionError, Encoding::InvalidByteSequenceError
input.unicode_normalize!(:nfc)
input = input.unicode_normalize(:nfc)
if normalized
options[:undef] = :replace
options[:replace] = '?'
Expand Down

0 comments on commit 660f669

Please sign in to comment.