Server IP : 150.95.80.236 / Your IP : 18.226.150.245 Web Server : Apache System : Linux host-150-95-80-236 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : social-telecare ( 10000) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/pcu.in.th/uat.pcu.in.th/demo15/src/plugins/formvalidation/dist/es6/validators/id/ |
Upload File : |
export default function t(t,r){if(!/^\d{13}$/.test(t)){return false}const e=parseInt(t.substr(0,2),10);const s=parseInt(t.substr(2,2),10);const n=parseInt(t.substr(7,2),10);const a=parseInt(t.substr(12,1),10);if(e>31||s>12){return false}let u=0;for(let r=0;r<6;r++){u+=(7-r)*(parseInt(t.charAt(r),10)+parseInt(t.charAt(r+6),10))}u=11-u%11;if(u===10||u===11){u=0}if(u!==a){return false}switch(r.toUpperCase()){case"BA":return 10<=n&&n<=19;case"MK":return 41<=n&&n<=49;case"ME":return 20<=n&&n<=29;case"RS":return 70<=n&&n<=99;case"SI":return 50<=n&&n<=59;default:return true}}