Skip to content

Commit

Permalink
LOGBACK-969 related fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ceki committed Apr 8, 2014
1 parent be4334e commit 0e04dc4
Showing 1 changed file with 5 additions and 4 deletions.
Expand Up @@ -33,11 +33,12 @@ String toRegex(CharSequenceState css) {
case 'z':
return ".*";
case 'M':
if (occurrences >= 4) {
return getRegexForLongMonths();
} else {
if(occurrences <= 2)
return number(occurrences);
else if (occurrences == 3)
return getRegexForShortMonths();
}
else
return getRegexForLongMonths();
case 'y':
case 'w':
case 'W':
Expand Down

0 comments on commit 0e04dc4

Please sign in to comment.