{"ast":null,"code":"import \"core-js/modules/es.regexp.exec.js\";\nimport \"core-js/modules/es.regexp.test.js\";\nimport * as util from '../util';\n/**\n * Rule for validating whitespace.\n *\n * @param rule The validation rule.\n * @param value The value of the field on the source object.\n * @param source The source object being validated.\n * @param errors An array of errors that this rule may add\n * validation errors to.\n * @param options The validation options.\n * @param options.messages The validation messages.\n */\n\nfunction whitespace(rule, value, source, errors, options) {\n if (/^\\s+$/.test(value) || value === '') {\n errors.push(util.format(options.messages.whitespace, rule.fullField));\n }\n}\n\nexport default whitespace;","map":{"version":3,"sources":["D:/Work/WorkSpace/GitWorkSpace/TenShop/resource/ElectronicMall/src/ElectronicMallVue/node_modules/async-validator/es/rule/whitespace.js"],"names":["util","whitespace","rule","value","source","errors","options","test","push","format","messages","fullField"],"mappings":";;AAAA,OAAO,KAAKA,IAAZ,MAAsB,SAAtB;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,SAASC,UAAT,CAAoBC,IAApB,EAA0BC,KAA1B,EAAiCC,MAAjC,EAAyCC,MAAzC,EAAiDC,OAAjD,EAA0D;AACxD,MAAI,QAAQC,IAAR,CAAaJ,KAAb,KAAuBA,KAAK,KAAK,EAArC,EAAyC;AACvCE,IAAAA,MAAM,CAACG,IAAP,CAAYR,IAAI,CAACS,MAAL,CAAYH,OAAO,CAACI,QAAR,CAAiBT,UAA7B,EAAyCC,IAAI,CAACS,SAA9C,CAAZ;AACD;AACF;;AAED,eAAeV,UAAf","sourcesContent":["import * as util from '../util';\n\n/**\n * Rule for validating whitespace.\n *\n * @param rule The validation rule.\n * @param value The value of the field on the source object.\n * @param source The source object being validated.\n * @param errors An array of errors that this rule may add\n * validation errors to.\n * @param options The validation options.\n * @param options.messages The validation messages.\n */\nfunction whitespace(rule, value, source, errors, options) {\n if (/^\\s+$/.test(value) || value === '') {\n errors.push(util.format(options.messages.whitespace, rule.fullField));\n }\n}\n\nexport default whitespace;"]},"metadata":{},"sourceType":"module"}