wip
This commit is contained in:
@@ -7,3 +7,7 @@ const collection = db.get('apps');
|
||||
(collection as any).index('secret'); // fuck type definition
|
||||
|
||||
export default collection as any; // fuck type definition
|
||||
|
||||
export function isValidNameId(nameId: string): boolean {
|
||||
return typeof nameId == 'string' && /^[a-zA-Z0-9\-]{3,30}$/.test(nameId);
|
||||
}
|
||||
|
Reference in New Issue
Block a user