aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/helpers/handlebars/capitalize.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/handlebars/capitalize.js')
-rw-r--r--server/sonar-web/src/main/js/helpers/handlebars/capitalize.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/helpers/handlebars/capitalize.js b/server/sonar-web/src/main/js/helpers/handlebars/capitalize.js
new file mode 100644
index 00000000000..f2d29b8fd74
--- /dev/null
+++ b/server/sonar-web/src/main/js/helpers/handlebars/capitalize.js
@@ -0,0 +1,3 @@
+module.exports = function (string) {
+ return string.charAt(0).toUpperCase() + string.slice(1).toLowerCase();
+};