export const isRequire = (data) => !!(data + '').trim()

export const isMobile = (num) => isRequire(num) && /^\d{11}$/.test(num)

export const isSmsCode = (num) => isRequire(num) && /^\d{6}$/.test(num)