Skip to content

Commit c5edf39

Browse files
committed
Revert "Fixing the output when supplying 'precision' (#201)"
This reverts commit 1a35967.
1 parent b4dbda4 commit c5edf39

File tree

11 files changed

+5
-148
lines changed

11 files changed

+5
-148
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [24.x]
15+
node-version: [20.x, 22.x]
1616

1717
steps:
1818
- name: Checkout Repository

dist/filesize.cjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ const EXPONENT = "exponent";
3535
const ROUND = "round";
3636

3737
// Special Characters and Values
38-
const E = "e";
3938
const EMPTY = "";
4039
const PERIOD = ".";
4140
const S = "s";
@@ -199,7 +198,6 @@ function filesize (arg, {
199198
// Setting optional precision
200199
if (precision > 0) {
201200
result[0] = result[0].toPrecision(precision);
202-
result[0] = result[0].split(E)[0];
203201
}
204202

205203
// Applying custom symbol

dist/filesize.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ const EXPONENT = "exponent";
3333
const ROUND = "round";
3434

3535
// Special Characters and Values
36-
const E = "e";
3736
const EMPTY = "";
3837
const PERIOD = ".";
3938
const S = "s";
@@ -195,7 +194,6 @@ function filesize (arg, {
195194
// Setting optional precision
196195
if (precision > 0) {
197196
result[0] = result[0].toPrecision(precision);
198-
result[0] = result[0].split(E)[0];
199197
}
200198

201199
// Applying custom symbol

dist/filesize.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/filesize.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/filesize.umd.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ const EXPONENT = "exponent";
3333
const ROUND = "round";
3434

3535
// Special Characters and Values
36-
const E = "e";
3736
const EMPTY = "";
3837
const PERIOD = ".";
3938
const S = "s";
@@ -195,7 +194,6 @@ function filesize (arg, {
195194
// Setting optional precision
196195
if (precision > 0) {
197196
result[0] = result[0].toPrecision(precision);
198-
result[0] = result[0].split(E)[0];
199197
}
200198

201199
// Applying custom symbol

dist/filesize.umd.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)