From d5258b7e64b9d438ed6ec24056b43faa3065de1c Mon Sep 17 00:00:00 2001 From: Jo-Be-Co Date: Fri, 17 Apr 2026 08:46:52 +0200 Subject: [PATCH] fixed merge collision --- .../NamingTemplate/ConditionalTagCollection[TClass].cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/FileManager/NamingTemplate/ConditionalTagCollection[TClass].cs b/Source/FileManager/NamingTemplate/ConditionalTagCollection[TClass].cs index 01f4050c..ceef5dbc 100644 --- a/Source/FileManager/NamingTemplate/ConditionalTagCollection[TClass].cs +++ b/Source/FileManager/NamingTemplate/ConditionalTagCollection[TClass].cs @@ -130,7 +130,7 @@ public partial class ConditionalTagCollection(bool caseSensitive = true) ) +? (? end with a whitepace. Otherwise "" would be matchable. (?:\s*\[\s* # optional check details enclosed in '[' and ']'. Check shall start with an operator. So match whitespace first (? # - capture inner part as - (?:\\. # - '\' escapes allways the next character. Especially further '\' and the closing ']' + (?:\\. # - '\' escapes always the next character. Especially further '\' and the closing ']' |[^\\\]])* ) # - match any character except '\' and ']'. check_or_op may end in whitespace! \])? # - closing the check_or_op part )? # end of optional property and check_or_op part @@ -159,7 +159,7 @@ public partial class ConditionalTagCollection(bool caseSensitive = true) (? # capture the '(?:[^']|'')*' # - allow 'string' to be included in the format, with '' being an escaped ' character | "(?:[^"]|"")*" # - allow "string" to be included in the format, with "" being an escaped " character - | (?: \[ (?: \\. # - properties may have optional formatting details enclosed in '[' and ']'. '\' escapes allways the next character + | (?: \[ (?: \\. # - properties may have optional formatting details enclosed in '[' and ']'. '\' escapes always the next character | [^\\\]] # unescaped characters except ']' and '\' are allowed in the formatting details )* \] # closing the formatting details part | . )+? # - match any character to form the property name. Capture non greedy so it won't match the operator part.