lib/fluent/plugin/grok.rb in fluent-plugin-grok-parser-1.0.0 vs lib/fluent/plugin/grok.rb in fluent-plugin-grok-parser-1.0.1

- old
+ new

@@ -80,10 +80,10 @@ raise GrokPatternNotFoundError, "grok pattern not found: #{pattern}" unless curr_pattern if m["subname"] replacement_pattern = "(?<#{m["subname"]}>#{curr_pattern})" type_map[m["subname"]] = m["type"] || "string" else - replacement_pattern = curr_pattern + replacement_pattern = "(?:#{curr_pattern})" end pattern.sub!(m[0]) do |s| replacement_pattern end end [pattern, type_map]