Skip to content

Commit

Permalink
Prevent a warning for `warning: literal string will be frozen in the …
Browse files Browse the repository at this point in the history
…future` (#744)
  • Loading branch information
ima1zumi authored Sep 5, 2024
1 parent c90f08f commit 69c95c8
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 69c95c8

Please sign in to comment.