input entities

This commit is contained in:
ari committed 2022-05-30 15:05:54 -04:00
1 parent 878035e748
commit 996626f9af
27 files changed
+596 -92

No files matched your search

+5
View File
@@ -121,3 +121,8 @@ export const prettyEntityId = (entityId: string | string[]) => {
return "..."
}
}
export const prettyName = (n: string) => {
const clean = n.replaceAll(/[\.-_]/g, ' ');
return clean.split(' ').map(x => x.slice(0, 1).toUpperCase() + x.slice(1)).join(' ')
}