This commit is contained in:
2022-01-12 17:21:37 +01:00
parent 5479605214
commit a5eb96cd97
8 changed files with 35 additions and 13 deletions

View File

@ -23,7 +23,11 @@ export class PegasusUtility {
Handlebars.registerHelper('upper', function (text) {
return text.toUpperCase();
});
});
Handlebars.registerHelper('upperFirst', function (text) {
if (typeof text !== 'string') return text
return text.charAt(0).toUpperCase() + text.slice(1)
});
}