code: function parseLimit(string) {
        var matches = ('' + string).toLowerCase().match(regexp),
            bytes = null, power;
  
        if (matches) {
          bytes = parseFloat(matches[1]);
          power = powers[matches[2]];
  
          if (bytes && power) {
            bytes = Math.pow(bytes * 1024, power);
          }
        }
  
        return bytes || null;
      }
docs: Parse a string representing a file size and convert it into bytes. A number on it's own will be assumed to be bytes. A multiple such as "k" or "m" can be appended to the string to handle larger numbers. This is case insensitive and uses powers of 1024 rather than (1000). So both 1kB and 1kb == 1024.