patch eslint rules

This commit is contained in:
undefined committed 2026-03-30 20:02:19 +08:00
1 parent 403a762da1
commit 642662f505
15 files changed
+24 -19

No files matched your search

+1 -1
View File
@@ -65,7 +65,7 @@ function fixFileName(fileName: string) {
const dotAt = fileName.lastIndexOf('.');
const name = fileName.slice(0, dotAt);
const suffix = fileName.slice(dotAt + 1);
if (!name.match(/[0-9]/)) {
if (!/[0-9]/.test(name)) {
fileName = `${name}0.${suffix}`;
}
}