src/rules.js
function(val, req, attribute) {
    if (val) {
      req = parseFloat(req);

      var size = this.getSize();

      return size === req;
    }

    return true;
  }
function(val, req, attribute) {
    if (val) {
      req = parseFloat(req);

      var size = this.getSize();

      return size === req;
    }

    return true;
  }
function ( val , req , attribute ) { if ( val ) { req = parseFloat ( req ) ; var size = this . getSize ( ) ; return size === req ; } return true ; }
compares the size of strings with numbers, compares the value
compares the size of strings with numbers compares the value