mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
patch eslint rules
This commit is contained in:
15 files changed
+24
-19
No files matched your search
@@ -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}`;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user