fix: lint and fix cache service

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-04-06 22:18:48 +08:00
parent 128b92cbee
commit 96263782d0
68 changed files with 139 additions and 219 deletions

View File

@@ -25,5 +25,4 @@ export function camelcase(str: string) {
return $1.toUpperCase().replace('-', '').replace('_', '')
})
}
const isMongoId = (id: string) =>
id.length === 24 && /^[\dA-Fa-f]{24}$/.test(id)
const isMongoId = (id: string) => id.length === 24 && /^[\dA-F]{24}$/i.test(id)