wip
This commit is contained in:
parent
d1557bcae8
commit
f11bdf36b9
5 changed files with 31 additions and 50 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue