Skip to content

Commit

Permalink
rubocop: Use string as argument instead of regexp
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Menges <[email protected]>
  • Loading branch information
Garfield96 committed Jun 20, 2023
1 parent 0a57185 commit 6047e1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/plugin/test_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class FluentPluginBaseTest::DummyPlugin2 < Fluent::Plugin::TestBase
@p.extend m
assert_equal [], logger.logs

ret = @p.string_safe_encoding("abc\xff.\x01f"){|s| s.split(/\./) }
ret = @p.string_safe_encoding("abc\xff.\x01f"){|s| s.split(".") }
assert_equal ['abc?', "\u0001f"], ret
assert_equal 1, logger.logs.size
assert{ logger.logs.first.include?("invalid byte sequence is replaced in ") }
Expand Down

0 comments on commit 6047e1c

Please sign in to comment.