From 63c4df36d4dcbe046b4d52832d331e86bab543eb Mon Sep 17 00:00:00 2001 From: Gurpreet Baidwan Date: Mon, 25 Sep 2023 12:15:22 -0400 Subject: [PATCH] Update filesize.js Enable applying custom symbols Enable applying custom symbols --- src/filesize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filesize.js b/src/filesize.js index 9af601a..45bca53 100644 --- a/src/filesize.js +++ b/src/filesize.js @@ -137,7 +137,7 @@ export function filesize (arg, { } // Applying custom symbol - result[1] = symbols[result[1]] || result[1]; + result[1] = symbols[standard][bits ? BITS : BYTES][e] || result[1]; if (locale === true) { result[0] = result[0].toLocaleString();