Skip to content

Commit eedbd41

Browse files
Fix linting issues and verify implementation works
Co-authored-by: francinelucca <[email protected]>
1 parent 03ccdc8 commit eedbd41

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/duration-format-ponyfill.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,14 @@ export default class DurationFormat {
110110
: unitStyle === 'numeric'
111111
? {}
112112
: {style: 'unit', unit: nfUnit, unitDisplay: unitStyle}
113-
113+
114114
let formattedValue = new Intl.NumberFormat(locale, nfOpts).format(value)
115-
115+
116116
// Custom handling for narrow month formatting to use "mo" instead of "m"
117117
if (unit === 'months' && unitStyle === 'narrow') {
118118
formattedValue = formattedValue.replace(/(\d+)m$/, '$1mo')
119119
}
120-
120+
121121
list.push(formattedValue)
122122
}
123123
return new ListFormat(locale, {

0 commit comments

Comments
 (0)