diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-07-31 09:31:39 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-07-31 09:35:55 +0200 |
commit | a384b4a97a2a4444d8e2c831765dbf35c8da0db2 (patch) | |
tree | 2bd6a62f0707c85fa9bb9322e1aea90a3b0f4305 /core/src/OC | |
parent | 0f8aca9d87db9022fe942a3d3fbb11433e152676 (diff) | |
download | nextcloud-server-a384b4a97a2a4444d8e2c831765dbf35c8da0db2.tar.gz nextcloud-server-a384b4a97a2a4444d8e2c831765dbf35c8da0db2.zip |
Bump @nextcloud/eslint-config and peers
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/src/OC')
-rw-r--r-- | core/src/OC/util.js | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/core/src/OC/util.js b/core/src/OC/util.js index aba47065e54..5908d9f6e1f 100644 --- a/core/src/OC/util.js +++ b/core/src/OC/util.js @@ -81,17 +81,17 @@ export default { let bytes = null const bytesArray = { - 'b': 1, - 'k': 1024, - 'kb': 1024, - 'mb': 1024 * 1024, - 'm': 1024 * 1024, - 'gb': 1024 * 1024 * 1024, - 'g': 1024 * 1024 * 1024, - 'tb': 1024 * 1024 * 1024 * 1024, - 't': 1024 * 1024 * 1024 * 1024, - 'pb': 1024 * 1024 * 1024 * 1024 * 1024, - 'p': 1024 * 1024 * 1024 * 1024 * 1024, + b: 1, + k: 1024, + kb: 1024, + mb: 1024 * 1024, + m: 1024 * 1024, + gb: 1024 * 1024 * 1024, + g: 1024 * 1024 * 1024, + tb: 1024 * 1024 * 1024 * 1024, + t: 1024 * 1024 * 1024 * 1024, + pb: 1024 * 1024 * 1024 * 1024 * 1024, + p: 1024 * 1024 * 1024 * 1024 * 1024, } const matches = s.match(/^[\s+]?([0-9]*)(\.([0-9]+))?( +)?([kmgtp]?b?)$/i) |