From 68e168cfb8f0195c92b0c35172b410f413ce359c Mon Sep 17 00:00:00 2001 From: Hiroshi Hatake Date: Thu, 4 Apr 2024 18:39:13 +0900 Subject: [PATCH] in_tail: Update comments for curly braces Because we can avoid the collisions for the tokens of comma usages. Signed-off-by: Hiroshi Hatake --- lib/fluent/plugin/in_tail.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/fluent/plugin/in_tail.rb b/lib/fluent/plugin/in_tail.rb index a13fec4ff3..f74ffdd8e6 100644 --- a/lib/fluent/plugin/in_tail.rb +++ b/lib/fluent/plugin/in_tail.rb @@ -297,8 +297,10 @@ def extended_glob_pattern(path) path.include?('*') || path.include?('?') || /\[.*\]/.match(path) end - # Curly braces is not supported for now because the default delimiter of path is ",". - # This should be collided for wildcard pattern for curly braces. + # Curly braces is not supported with default path_delimiter + # because the default delimiter of path is ",". + # This should be collided for wildcard pattern for curly braces and + # be handled as an error on #configure. def use_glob?(path) if @glob_policy == :always # For future extensions, we decided to use `always' term to handle