Ignore:
Timestamp:
11/25/21 22:08:24 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
8d391a1
Parents:
59329aa
Message:

primeNG components

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trip-planner-front/node_modules/bytes/index.js

    r59329aa re29cc2e  
    3131  mb: 1 << 20,
    3232  gb: 1 << 30,
    33   tb: Math.pow(1024, 4),
    34   pb: Math.pow(1024, 5),
     33  tb: ((1 << 30) * 1024)
    3534};
    3635
    37 var parseRegExp = /^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;
     36var parseRegExp = /^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb)$/i;
    3837
    3938/**
     
    9594
    9695  if (!unit || !map[unit.toLowerCase()]) {
    97     if (mag >= map.pb) {
    98       unit = 'PB';
    99     } else if (mag >= map.tb) {
     96    if (mag >= map.tb) {
    10097      unit = 'TB';
    10198    } else if (mag >= map.gb) {
Note: See TracChangeset for help on using the changeset viewer.