Server IP : 150.95.80.236 / Your IP : 3.138.116.228 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/assets/plugins/formvalidation/dist/es6/validators/id/ |
Upload File : |
import t from"../../utils/isValidDate";export default function s(s){if(!/^\d{12}$/.test(s)){return{meta:{},valid:false}}const e=parseInt(s.substr(0,2),10);const r=parseInt(s.substr(2,2),10);const a=parseInt(s.substr(4,2),10);if(!t(e+1900,r,a)&&!t(e+2e3,r,a)){return{meta:{},valid:false}}const n=s.substr(6,2);const i=["17","18","19","20","69","70","73","80","81","94","95","96","97"];return{meta:{},valid:i.indexOf(n)===-1}}