mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-11 21:45:04 +10:00
fix: enhance resume schema validation and improve slugify function for CJK input
This commit is contained in:
@@ -16,7 +16,9 @@ export function generateId() {
|
||||
* @returns The slugified value.
|
||||
*/
|
||||
export function slugify(value: string) {
|
||||
return _slugify(value, { decamelize: false });
|
||||
const slug = _slugify(value, { decamelize: false });
|
||||
if (slug || !value.trim()) return slug;
|
||||
return slugify(generateRandomName());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user