ALl features OK, excetp creatures sub-type, WIP3
This commit is contained in:
@@ -54,11 +54,11 @@ export class MournbladeCYD2Utility {
|
||||
return text.toUpperCase();
|
||||
})
|
||||
Handlebars.registerHelper('lower', function (text) {
|
||||
return text.toLowerCase()
|
||||
return text.toLowerCase();
|
||||
})
|
||||
Handlebars.registerHelper('upperFirst', function (text) {
|
||||
if (typeof text !== 'string') return text
|
||||
return text.charAt(0).toUpperCase() + text.slice(1)
|
||||
if (typeof text !== 'string') return text;
|
||||
return text.charAt(0).toUpperCase() + text.slice(1);
|
||||
})
|
||||
Handlebars.registerHelper('notEmpty', function (list) {
|
||||
return list.length > 0;
|
||||
@@ -99,11 +99,11 @@ export class MournbladeCYD2Utility {
|
||||
.join(', ');
|
||||
});
|
||||
|
||||
Handlebars.registerHelper('select', function(value, options) {
|
||||
const html = options.fn(this);
|
||||
Handlebars.registerHelper('select', function(value, opts) {
|
||||
const html = opts.fn(this);
|
||||
const escaped = String(value).replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
||||
return html.replace(new RegExp(`value="${escaped}"`, 'g'), `value="${value}" selected="selected"`);
|
||||
})
|
||||
});
|
||||
|
||||
game.settings.register("fvtt-mournblade-cyd-2-0", "mournblade-cyd2-pause-logo", {
|
||||
name: "Logo de pause",
|
||||
|
||||
Reference in New Issue
Block a user