mirror of
https://github.com/docmost/docmost.git
synced 2025-11-13 18:02:37 +10:00
* Refactor workspace membership system * Create setup endpoint * Use Passport.js * Several updates and fixes
6 lines
182 B
TypeScript
6 lines
182 B
TypeScript
export function generateHostname(name: string): string {
|
|
let hostname = name.replace(/[^a-z0-9]/gi, '').toLowerCase();
|
|
hostname = hostname.substring(0, 30);
|
|
return hostname;
|
|
}
|