@zwa73/utils 1.0.10 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -127,6 +127,7 @@ function fileSearch(folder, traitRegex) {
127
127
  let regex = new RegExp(traitRegex);
128
128
  for (let subFile of subFiles) {
129
129
  let subFilePath = path.join(folder, subFile);
130
+ subFilePath.replace(/\\/g, "/");
130
131
  let stat = fs.lstatSync(subFilePath);
131
132
  //判断是否是文件夹,递归调用
132
133
  if (stat.isDirectory()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zwa73/utils",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "my utils",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -122,6 +122,7 @@ export function fileSearch(folder: string, traitRegex: string) {
122
122
  let regex = new RegExp(traitRegex);
123
123
  for (let subFile of subFiles) {
124
124
  let subFilePath = path.join(folder, subFile);
125
+ subFilePath.replace(/\\/g,"/");
125
126
  let stat = fs.lstatSync(subFilePath);
126
127
 
127
128
  //判断是否是文件夹,递归调用