UNPKG

@shixinde/utils

Version:
2 lines (1 loc) 824 B
(function(t,n){typeof exports=="object"&&typeof module<"u"?n(exports):typeof define=="function"&&define.amd?define(["exports"],n):(t=typeof globalThis<"u"?globalThis:t||self,n(t.index={}))})(this,function(t){"use strict";function n(e){var d=/^[0-9]*$/;return!(d.exec(e)==null||e=="")}function i(e){return Object.keys(e).length===0}const o=e=>/^[1][3,4,5,7,8][0-9]{9}$/.test(e),c=e=>/^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/.test(e),l=e=>/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/.test(e),u=e=>(navigator.clipboard.writeText(e),!0);console.log("1 ===>",1),console.log("isNumber ===>",n("666666666666")),t.copy=u,t.emailCheck=l,t.idCardCheck=c,t.isNullObject=i,t.isNumber=n,t.mobileCheck=o,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});