Skip to content

Commit edb2ab7

Browse files
authored
fix: Luxon AM/PM formatting (#862)
1 parent a368aa5 commit edb2ab7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/generate/luxon.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ const normalizeFormatPart = (part: string): string =>
2525
.replace(/D/g, 'd')
2626
.replace(/gg/g, 'kk')
2727
.replace(/Q/g, 'q')
28-
.replace(/([Ww])o/g, 'WW');
28+
.replace(/([Ww])o/g, 'WW')
29+
.replace(/A/g, 'a');
2930

3031
/**
3132
* Normalizes a moment compatible format string to a luxon compatible format string

0 commit comments

Comments
 (0)