File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
main/java/ch/qos/logback/core/rolling/helper
test/java/ch/qos/logback/core/rolling/helper Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ public String toRegexForFixedDate(Date date) {
199
199
if (p instanceof LiteralConverter ) {
200
200
buf .append (p .convert (null ));
201
201
} else if (p instanceof IntegerTokenConverter ) {
202
- buf .append ("(\\ d{1,3 })" );
202
+ buf .append ("(\\ d{1,5 })" );
203
203
} else if (p instanceof DateTokenConverter ) {
204
204
buf .append (p .convert (date ));
205
205
}
Original file line number Diff line number Diff line change @@ -151,12 +151,12 @@ public void asRegexByDate() {
151
151
{
152
152
FileNamePattern fnp = new FileNamePattern ("foo-%d{yyyy.MM.dd}-%i.txt" , context );
153
153
String regex = fnp .toRegexForFixedDate (cal .getTime ());
154
- assertEquals ("foo-2003.05.20-(\\ d{1,3 }).txt" , regex );
154
+ assertEquals ("foo-2003.05.20-(\\ d{1,5 }).txt" , regex );
155
155
}
156
156
{
157
157
FileNamePattern fnp = new FileNamePattern ("\\ toto\\ foo-%d{yyyy\\ MM\\ dd}-%i.txt" , context );
158
158
String regex = fnp .toRegexForFixedDate (cal .getTime ());
159
- assertEquals ("/toto/foo-2003/05/20-(\\ d{1,3 }).txt" , regex );
159
+ assertEquals ("/toto/foo-2003/05/20-(\\ d{1,5 }).txt" , regex );
160
160
}
161
161
}
162
162
You can’t perform that action at this time.
0 commit comments