Various fixes

This commit is contained in:
2022-02-16 12:14:34 +01:00
parent 6e8e1ec5a3
commit 8dd7217e69
9 changed files with 124 additions and 55 deletions

View File

@ -29,6 +29,12 @@ export class PegasusUtility {
this.buildDiceLists();
PegasusCommands.init();
Handlebars.registerHelper('count', function (list) {
return list.length;
});
Handlebars.registerHelper('includes', function (array, val) {
return array.includes(val);
});
Handlebars.registerHelper('upper', function (text) {
return text.toUpperCase();
});