Skip to content

Commit 1f2809b

Browse files
committed
Fix AM/PM detection being case-sensitive
1 parent 29c9098 commit 1f2809b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DateTimeInput.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export default class DateTimeInput extends PureComponent {
175175
.replace('9', 'hour-12')
176176
.replace('13', 'minute')
177177
.replace('14', 'second')
178-
.replace(/AM|PM/, `${this.timeDivider}ampm`)
178+
.replace(/AM|PM/i, `${this.timeDivider}ampm`)
179179
);
180180
}
181181

0 commit comments

Comments
 (0)