Skip to content

StrSubstitutor cannot parse nested braces #2679

@vy

Description

@vy

As reported in #2666,

<PatternLayout pattern="${env:TZ:-%d{yyyy-MM-dd HH:mm:ss}{GMT+00}}"/>

leaves behind a trailing } while formatting date. That is, StrSubstitutor doesn't correctly parse nested braces.

Metadata

Metadata

Assignees

Labels

bugIncorrect, unexpected, or unintended behavior of existing code

Type

No type
No fields configured for issues without a type.

Projects

Status

Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions