1 |
- ;(function(){System.register([],function(exports){'use strict';return{execute:function execute(){exports({a:verifiyNumberInteger,v:verifyNumberIntegerAndFloat});function verifyNumberIntegerAndFloat(val){var v=val.replace(/(^\s*)|(\s*$)/g,"");v=v.replace(/[^\d.]/g,"");v=v.replace(/^0{2}$/g,"0");v=v.replace(/^\./g,"");v=v.replace(".","$#$").replace(/\./g,"").replace("$#$",".");v=v.replace(/^(\-)*(\d+)\.(\d\d).*$/,"$1$2.$3");return v;}function verifiyNumberInteger(val){var v=val.replace(/(^\s*)|(\s*$)/g,"");v=v.replace(/[\.]*/g,"");v=v.replace(/(^0[\d]*)$/g,"0");v=v.replace(/^0\d$/g,"0");v=v.replace(/[^\d]/g,"");return v;}}};});})();
|