summaryrefslogtreecommitdiff
path: root/src/utils/strings.ts
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-08 16:01:36 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-08 16:01:36 +1000
commitb0f857f0d1a1bec3d9c56a6e76d54932bfc6bf01 (patch)
treefe3ede646c1a2f4f7abf3ba62cb3433113b35015 /src/utils/strings.ts
parentdev: use typescript 5.7.3 to fix jsx type errors (diff)
downloadcaelestia-shell-b0f857f0d1a1bec3d9c56a6e76d54932bfc6bf01.tar.gz
caelestia-shell-b0f857f0d1a1bec3d9c56a6e76d54932bfc6bf01.tar.bz2
caelestia-shell-b0f857f0d1a1bec3d9c56a6e76d54932bfc6bf01.zip
feat: add navbar
For controlling sidebar panes + other stuff later
Diffstat (limited to 'src/utils/strings.ts')
-rw-r--r--src/utils/strings.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils/strings.ts b/src/utils/strings.ts
index 4786c6b..77608e8 100644
--- a/src/utils/strings.ts
+++ b/src/utils/strings.ts
@@ -9,3 +9,5 @@ export const pathToFileName = (path: string, ext?: string) => {
const dir = path.slice(start, path.lastIndexOf("/")).replaceAll("/", "-");
return `${dir}-${basename(path, ext !== undefined)}${ext ? `.${ext}` : ""}`;
};
+
+export const capitalize = (str: string) => str.charAt(0).toUpperCase() + str.slice(1);