Changeset e29cc2e for trip-planner-front/node_modules/bytes/index.js
- Timestamp:
- 11/25/21 22:08:24 (3 years ago)
- Branches:
- master
- Children:
- 8d391a1
- Parents:
- 59329aa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/node_modules/bytes/index.js
r59329aa re29cc2e 31 31 mb: 1 << 20, 32 32 gb: 1 << 30, 33 tb: Math.pow(1024, 4), 34 pb: Math.pow(1024, 5), 33 tb: ((1 << 30) * 1024) 35 34 }; 36 35 37 var parseRegExp = /^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb |pb)$/i;36 var parseRegExp = /^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb)$/i; 38 37 39 38 /** … … 95 94 96 95 if (!unit || !map[unit.toLowerCase()]) { 97 if (mag >= map.pb) { 98 unit = 'PB'; 99 } else if (mag >= map.tb) { 96 if (mag >= map.tb) { 100 97 unit = 'TB'; 101 98 } else if (mag >= map.gb) {
Note:
See TracChangeset
for help on using the changeset viewer.