接入 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

+2
View File
@@ -3,6 +3,7 @@
function e(e) {
if (
!/^(?:https?:\/\/|\/(?!\/)|\.\.?\/)/i.test(e) ||
// eslint-disable-next-line no-control-regex -- 安全边界:拒绝附件 URL 内的控制字符。
/[\u0000-\u001f\u007f\\]/.test(e)
)
return !1;
@@ -56,6 +57,7 @@ function r(t) {
u = c || (l ? n(l, i) : ``),
d =
l ||
// eslint-disable-next-line no-control-regex -- 安全边界:拒绝附件名中的控制字符。
(typeof o == `string` && !e(o) && !/[\\/:\u0000-\u001f]/.test(o)
? o
: ``),