Skip to content

Commit

Permalink
Missed the nullish coercion with last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Sep 4, 2024
1 parent 6eaa3ce commit 10d1fc6
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/filesize.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ function filesize (arg, {

if (pad && round > 0) {
const i = result[0].toString(),
x = separator || ((i.match(/(\D)/g) || []).pop() ?? PERIOD),
x = separator || ((i.match(/(\D)/g) || []).pop() || PERIOD),
tmp = i.toString().split(x),
s = tmp[1] || EMPTY,
l = s.length,
Expand Down
2 changes: 1 addition & 1 deletion dist/filesize.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ const STRINGS = {

if (pad && round > 0) {
const i = result[0].toString(),
x = separator || ((i.match(/(\D)/g) || []).pop() ?? PERIOD),
x = separator || ((i.match(/(\D)/g) || []).pop() || PERIOD),
tmp = i.toString().split(x),
s = tmp[1] || EMPTY,
l = s.length,
Expand Down
2 changes: 1 addition & 1 deletion dist/filesize.esm.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/filesize.esm.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/filesize.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ const STRINGS = {

if (pad && round > 0) {
const i = result[0].toString(),
x = separator || ((i.match(/(\D)/g) || []).pop() ?? PERIOD),
x = separator || ((i.match(/(\D)/g) || []).pop() || PERIOD),
tmp = i.toString().split(x),
s = tmp[1] || EMPTY,
l = s.length,
Expand Down
2 changes: 1 addition & 1 deletion dist/filesize.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 10d1fc6

Please sign in to comment.