Fixed so that CompendiumBrowserSettings saves source/pack names as slugified version to avoid foundrdy not saving names with dots in the middle

This commit is contained in:
WBHarry 2026-05-20 17:10:19 +02:00
parent 2f589c1b8e
commit ca29903a56
3 changed files with 11 additions and 6 deletions

View file

@ -449,12 +449,11 @@ export async function createEmbeddedItemsWithEffects(actor, baseData) {
effects: data.effects?.map(effect => effect.toObject())
});
}
await actor.createEmbeddedDocuments('Item', effectData);
}
export const slugify = name => {
return name.toLowerCase().replaceAll(' ', '-').replaceAll('.', '');
return name.toLowerCase().replaceAll(' ', '-').replaceAll('.', '_');
};
export function shuffleArray(array) {