Skip to content

Commit 10d1fc6

Browse files
committed
Missed the nullish coercion with last commit
1 parent 6eaa3ce commit 10d1fc6

8 files changed

+8
-8
lines changed

dist/filesize.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ function filesize (arg, {
173173

174174
if (pad && round > 0) {
175175
const i = result[0].toString(),
176-
x = separator || ((i.match(/(\D)/g) || []).pop() ?? PERIOD),
176+
x = separator || ((i.match(/(\D)/g) || []).pop() || PERIOD),
177177
tmp = i.toString().split(x),
178178
s = tmp[1] || EMPTY,
179179
l = s.length,

dist/filesize.esm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ const STRINGS = {
169169

170170
if (pad && round > 0) {
171171
const i = result[0].toString(),
172-
x = separator || ((i.match(/(\D)/g) || []).pop() ?? PERIOD),
172+
x = separator || ((i.match(/(\D)/g) || []).pop() || PERIOD),
173173
tmp = i.toString().split(x),
174174
s = tmp[1] || EMPTY,
175175
l = s.length,

dist/filesize.esm.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/filesize.esm.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/filesize.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ const STRINGS = {
169169

170170
if (pad && round > 0) {
171171
const i = result[0].toString(),
172-
x = separator || ((i.match(/(\D)/g) || []).pop() ?? PERIOD),
172+
x = separator || ((i.match(/(\D)/g) || []).pop() || PERIOD),
173173
tmp = i.toString().split(x),
174174
s = tmp[1] || EMPTY,
175175
l = s.length,

dist/filesize.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)