@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.
- package/dist/UtilFunctions.js +1 -1
- package/package.json +1 -1
- package/src/UtilFunctions.ts +1 -1
package/dist/UtilFunctions.js
CHANGED
|
@@ -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
package/src/UtilFunctions.ts
CHANGED
|
@@ -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
|
//判断是否是文件夹,递归调用
|