Sha256: 9e116c87d97de7ad05d02d9999ef646c889aea373e665295783760464abef0c0

Contents?: true

Size: 561 Bytes

Versions: 9

Compression:

Stored size: 561 Bytes

Contents

//>>built
define("dojox/validate/ca",["dojo/_base/lang","./_base","./regexp","./us"],function(_1,_2,_3,us){
var ca=_1.getObject("ca",true,_2);
_1.mixin(ca,{isPhoneNumber:function(_4){
return us.isPhoneNumber(_4);
},isProvince:function(_5){
var re=new RegExp("^"+_3.ca.province()+"$","i");
return re.test(_5);
},isSocialInsuranceNumber:function(_6){
var _7={format:["###-###-###","### ### ###","#########"]};
return _2.isNumberFormat(_6,_7);
},isPostalCode:function(_8){
var re=new RegExp("^"+_3.ca.postalCode()+"$","i");
return re.test(_8);
}});
return ca;
});

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
dojox-rails-0.14.0 vendor/assets/javascripts/dojox/validate/ca.js
dojox-rails-0.13.0 vendor/assets/javascripts/dojox/validate/ca.js
dojox-rails-0.12.0 vendor/assets/javascripts/dojox/validate/ca.js
dojox-rails-0.11.0 vendor/assets/javascripts/validate/ca.js
dojo-rails-0.9.4 vendor/assets/javascripts/dojox/validate/ca.js
dojo-rails-0.9.3 vendor/assets/javascripts/dojox/validate/ca.js
dojo-rails-0.9.2 vendor/assets/javascripts/dojox/validate/ca.js
dojo-rails-0.9.1 vendor/assets/javascripts/dojox/validate/ca.js
dojo-rails-0.9.0 vendor/assets/javascripts/dojox/validate/ca.js