# Features 
- Build environment variables for NodeJS builds
- Initial monorepo support (more tests needed!)

# Fixes
- Fix wrong redirects
- Logout fix for the session manager
This commit is contained in:
Andras Bacsai
2021-07-16 23:42:14 +02:00
committed by GitHub
parent 2d0f22b379
commit b4c836afbd
33 changed files with 1272 additions and 2194 deletions

9
src/lib/common.ts Normal file
View File

@@ -0,0 +1,9 @@
export function dashify(str: string, options?: any) {
if (typeof str !== 'string') return str;
return str
.trim()
.replace(/\W/g, (m) => (/[À-ž]/.test(m) ? m : '-'))
.replace(/^-+|-+$/g, '')
.replace(/-{2,}/g, (m) => (options && options.condense ? '-' : m))
.toLowerCase();
}