Skip to content

Commit

Permalink
fixed month comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
leah committed May 21, 2015
1 parent 6936e31 commit 27d7105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Zxcvbn/Zxcvbn/DBMatcher.m
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ - (NSArray *)findAll:(NSString *)password patternName:(NSString *)patternName rx

match.separator = [result rangeAtIndex:2].location < [password length] ? [password substringWithRange:[result rangeAtIndex:2]] : @"";

if (12 <= month <= 31 && day <= 12) { // tolerate both day-month and month-day order
if (month >= 12 && month <= 31 && day <= 12) { // tolerate both day-month and month-day order
int temp = day;
day = month;
month = temp;
Expand Down

0 comments on commit 27d7105

Please sign in to comment.