code: function _getSize(attribute, value) {
      hasNumeric = _hasRule(attribute, _numericRules);
  
      // This method will determine if the attribute is a number, string, or file and
      // return the proper size accordingly. If it is a number, then number itself
      // is the size. If it is a file, we take kilobytes, and for a string the
      // entire length of the string will be considered the attribute size.
      if (/^[0-9]+$/.test(value) && hasNumeric) {
        return getValue(attribute);
      } else if (value && is_string(value) || is_array(value)) {
        return value.length;
      }
  
      return 0;
    }
docs: get attribute size
  
  @param {String}  attribute
  @param {Mixed}   value
  
  @return {Number}