[logback-dev] [qos-ch/logback-decoder] 1044e5: Fix bad match when multiple closing parens/braces ...
Tony Trinh
tony19 at gmail.com
Mon Jun 10 05:31:46 CEST 2013
Branch: refs/heads/master
Home: https://github.com/qos-ch/logback-decoder
Commit: 1044e544720a5772148c5f5edfe216ab3a6255db
https://github.com/qos-ch/logback-decoder/commit/1044e544720a5772148c5f5edfe216ab3a6255db
Author: Tony Trinh <tony19 at gmail.com>
Date: 2013-06-08 (Sat, 08 Jun 2013)
Changed paths:
M src/main/java/ch/qos/logback/core/pattern/parser2/PatternParser.java
Log Message:
-----------
Fix bad match when multiple closing parens/braces exist
Previously, the PatternParser used a greedy matcher for groups
conversion modifiers (enclosed in parentheses and curly brackets,
respectively), which resulted in unintentional capturing of text.
This patch tweaks the regex patterns to use reluctant matching.
More information about the logback-dev
mailing list