@zwa73/utils 1.0.11 → 1.0.13

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,7 +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
+ subFilePath = subFilePath.replace(/\\/g, "/");
131
131
  let stat = fs.lstatSync(subFilePath);
132
132
  //判断是否是文件夹,递归调用
133
133
  if (stat.isDirectory()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zwa73/utils",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "description": "my utils",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -122,7 +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
+ subFilePath = subFilePath.replace(/\\/g,"/");
126
126
  let stat = fs.lstatSync(subFilePath);
127
127
 
128
128
  //判断是否是文件夹,递归调用