diff --git a/.github/ISSUE_TEMPLATE/bug_report_cn.md b/.github/ISSUE_TEMPLATE/bug_report_cn.md index 9f1df0c..a7b3558 100644 --- a/.github/ISSUE_TEMPLATE/bug_report_cn.md +++ b/.github/ISSUE_TEMPLATE/bug_report_cn.md @@ -9,7 +9,7 @@ assignees: '' **预先准备** 1. 删除`~/.config/wechat_devtools`目录,重新打开项目(若发布`issue`即默认阁下执行了此操作且问题没有解决); -2. HelloWorld是否正常(登录状态新建项目):正常/不正常 +2. HelloWorld是否正常(登录状态新建默认项目,执行复现步骤):正常/不正常 **问题描述** 请对问题做一个简单描述。 @@ -24,12 +24,12 @@ assignees: '' 经过上述操作你希望得到的结果. **截屏** -添加截图图片有助于解释您的问题(复制图片后直接粘贴将自动上传图片)。 +添加截图图片有助于解释您的问题,请尽量将整个开发工具都涵括在截图在(复制图片后直接粘贴将自动上传图片)。 **版本信息 (这是必要的):** - - OS: e.g. iOS + - OS: e.g. manjaro - Package: e.g. xxx_wine.tar.gz - - Wine Version: e.g. 7 + - Wine Version: e.g. 7 可选 **代码片段** 提供代码片段对维护者定位与修复问题有极大帮助; diff --git a/.github/ISSUE_TEMPLATE/bug_report_en.md b/.github/ISSUE_TEMPLATE/bug_report_en.md deleted file mode 100644 index 58b183d..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report_en.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve -title: '' -labels: bug -assignees: '' - ---- - -**Describe the bug** -A clear and concise description of what the bug is. - -**To Reproduce** -Steps to reproduce the behavior: -1. Go to '...' -2. Click on '....' -3. Scroll down to '....' -4. See error - -**Expected behavior** -A clear and concise description of what you expected to happen. - -**Screenshots** -If applicable, add screenshots to help explain your problem. - -**Version Information (please complete the following information):** - - OS: [e.g. iOS] - - Package [e.g. xxx_wine.tar.gz] - - Wine Version [e.g. 7] - -**Additional context** -Add any other context about the problem here. diff --git a/compiler/nodejs/wcsc b/compiler/nodejs/wcsc index 6ef39e8..257170a 100755 --- a/compiler/nodejs/wcsc +++ b/compiler/nodejs/wcsc @@ -30,9 +30,9 @@ if (args.includes("-ll")) { }); wcsc.on("close", (n) => { if (0 === n) { - let str = Buffer.concat(spwanData) - .toString() - DEBUG_OUTPUT && fs.writeFileSync(`${DEBUG_OUTPUT}/linux_output.js`, str) + let str = Buffer.concat(spwanData).toString(); + DEBUG_OUTPUT && + fs.writeFileSync(`${DEBUG_OUTPUT}/linux_output.js`, str); const resultSplit = str.split("="); const tempObj = {}; for ( @@ -43,8 +43,7 @@ if (args.includes("-ll")) { // a=b ---> a: b const key = resultSplit[i]; if (key === "version") continue; - tempObj[key] = resultSplit[i + 1] - .replace( + tempObj[key] = resultSplit[i + 1].replace( /[^\\]((\\x[\da-f]{2}|\\u[\da-f]{4})){1,}/g, function ($0, $1, $2) { return eval('"' + $0 + '"'); @@ -62,28 +61,9 @@ if (args.includes("-ll")) { } let result = JSON.stringify(resultObj); result = result.replace(/\\\\/g, "\\"); - // result = result.replace(/\\[\s\S]{1}/g, function ($0, $1, $2) { - // let c; - // process.stderr.write($0 + "\n=====\n") - // switch ($0) { - // case "\\n": - // c = "\n"; - // break; - // case "\\t": - // c = "\t"; - // break; - - // default: - // c = $0[1]; - // break; - // } - // process.stderr.write("\\u" + c.charCodeAt(0).toString(16).padStart(4, "0") + "\n=====\n") - // return "\\u" + c.charCodeAt(0).toString(16).padStart(4, "0"); - // }); process.stdout.write(result); - // process.stderr.write(result); } else { - const err = Buffer.concat(errData).toString() + const err = Buffer.concat(errData).toString(); DEBUG_OUTPUT && fs.writeFileSync(`${DEBUG_OUTPUT}/linux_err.js`, err); process.stderr.write(err);