From 6a263b1c36f0c228f6a003f45922b673bf35e7c2 Mon Sep 17 00:00:00 2001 From: Masahiro Nakagawa Date: Fri, 15 Mar 2019 10:15:22 +0900 Subject: [PATCH] parser_regexp: Fix broken test due to no named capture Signed-off-by: Masahiro Nakagawa --- test/compat/test_parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/compat/test_parser.rb b/test/compat/test_parser.rb index 4d5ba27dec..f5261640ba 100644 --- a/test/compat/test_parser.rb +++ b/test/compat/test_parser.rb @@ -84,7 +84,7 @@ def test_setting_estimate_current_event_value multiline: Regexp::MULTILINE, both: Regexp::IGNORECASE & Regexp::MULTILINE) def test_regexp_parser_config(options) - source = "a" + source = "(?.*)" parser = Fluent::TextParser::RegexpParser.new(Regexp.new(source, options), { "dummy" => "dummy" }) regexp = parser.instance_variable_get("@regexp") assert_equal(options, regexp.options)