Skip to content

Commit

Permalink
Fix AM/PM detection being case-sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Aug 3, 2018
1 parent 59d1d62 commit ba814c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TimeInput.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export default class TimeInput extends PureComponent {
.replace('9', 'hour-12')
.replace('13', 'minute')
.replace('14', 'second')
.replace(/AM|PM/, `${this.divider}ampm`)
.replace(/AM|PM/i, `${this.divider}ampm`)
);
}

Expand Down

0 comments on commit ba814c2

Please sign in to comment.