Skip to content

Commit

Permalink
parser_regexp: Fix broken test due to no named capture
Browse files Browse the repository at this point in the history
Signed-off-by: Masahiro Nakagawa <[email protected]>
  • Loading branch information
repeatedly committed Mar 15, 2019
1 parent ab3b452 commit 6a263b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/compat/test_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "(?<test>.*)"
parser = Fluent::TextParser::RegexpParser.new(Regexp.new(source, options), { "dummy" => "dummy" })
regexp = parser.instance_variable_get("@regexp")
assert_equal(options, regexp.options)
Expand Down

0 comments on commit 6a263b1

Please sign in to comment.