1 |
- {"ast":null,"code":"'use strict';\n\nmodule.exports = function (str, sep) {\n if (typeof str !== 'string') {\n throw new TypeError('Expected a string');\n }\n sep = typeof sep === 'undefined' ? '_' : sep;\n return str.replace(/([a-z\\d])([A-Z])/g, '$1' + sep + '$2').replace(/([A-Z]+)([A-Z][a-z\\d]+)/g, '$1' + sep + '$2').toLowerCase();\n};","map":{"version":3,"names":["module","exports","str","sep","TypeError","replace","toLowerCase"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/decamelize/index.js"],"sourcesContent":["'use strict';\nmodule.exports = function (str, sep) {\n\tif (typeof str !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\tsep = typeof sep === 'undefined' ? '_' : sep;\n\n\treturn str\n\t\t.replace(/([a-z\\d])([A-Z])/g, '$1' + sep + '$2')\n\t\t.replace(/([A-Z]+)([A-Z][a-z\\d]+)/g, '$1' + sep + '$2')\n\t\t.toLowerCase();\n};\n"],"mappings":"AAAA,YAAY;;AACZA,MAAM,CAACC,OAAO,GAAG,UAAUC,GAAG,EAAEC,GAAG,EAAE;EACpC,IAAI,OAAOD,GAAG,KAAK,QAAQ,EAAE;IAC5B,MAAM,IAAIE,SAAS,CAAC,mBAAmB,CAAC;EACzC;EAEAD,GAAG,GAAG,OAAOA,GAAG,KAAK,WAAW,GAAG,GAAG,GAAGA,GAAG;EAE5C,OAAOD,GAAG,CACRG,OAAO,CAAC,mBAAmB,EAAE,IAAI,GAAGF,GAAG,GAAG,IAAI,CAAC,CAC/CE,OAAO,CAAC,0BAA0B,EAAE,IAAI,GAAGF,GAAG,GAAG,IAAI,CAAC,CACtDG,WAAW,CAAC,CAAC;AAChB,CAAC","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}
|