接入 ESLint 与 Prettier 并加入 CI 静态门禁
前端验证 / verify (push) Failing after 15m2s

This commit is contained in:
cieanyau committed 2026-11-07 01:24:36 +08:00
1 parent 339df89fcf
commit 651c36367f
33 files changed
+1420 -40

No files matched your search

+1
View File
@@ -110,6 +110,7 @@ var T = {
);
// 下载地址仅允许 HTTP(S) 或站内绝对路径,拒绝反斜杠、空白控制字符和协议相对地址。
function q(e) {
// eslint-disable-next-line no-control-regex -- 安全边界:拒绝发票下载地址中的控制字符。
return typeof e != `string` || /[\u0000-\u0020\\]/.test(e)
? ``
: /^https?:\/\//i.test(e) || /^\/(?!\/)/.test(e)