aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/root-helpers
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/root-helpers')
-rw-r--r--client/src/root-helpers/index.ts1
-rw-r--r--client/src/root-helpers/string.ts7
2 files changed, 8 insertions, 0 deletions
diff --git a/client/src/root-helpers/index.ts b/client/src/root-helpers/index.ts
index 3b95b4b99..0492924fd 100644
--- a/client/src/root-helpers/index.ts
+++ b/client/src/root-helpers/index.ts
@@ -4,5 +4,6 @@ export * from './images'
4export * from './local-storage-utils' 4export * from './local-storage-utils'
5export * from './peertube-web-storage' 5export * from './peertube-web-storage'
6export * from './plugins-manager' 6export * from './plugins-manager'
7export * from './string'
7export * from './utils' 8export * from './utils'
8export * from './video' 9export * from './video'
diff --git a/client/src/root-helpers/string.ts b/client/src/root-helpers/string.ts
new file mode 100644
index 000000000..f81587494
--- /dev/null
+++ b/client/src/root-helpers/string.ts
@@ -0,0 +1,7 @@
1function capitalizeFirstLetter (str: string) {
2 return str.charAt(0).toUpperCase() + str.slice(1)
3}
4
5export {
6 capitalizeFirstLetter
7}