fix: lint and fix cache service
Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user