const isCard= num =>{ let regx= /(^\d{15})∣(\d17(\d∣X∣x))|(^\d{17}(\d|X|x))∣(\d17(\d∣X∣x))/ return num.test(regx) }