Technique: Sanitize Difficulty and Skill list

This commit is contained in:
Vlyan
2022-02-12 13:07:14 +01:00
parent 16dbc7939d
commit 5bbec503ea
3 changed files with 71 additions and 1 deletions

View File

@@ -686,7 +686,7 @@ export class DicePickerDialog extends FormApplication {
// 2: "vigilance"
// 3: "max"
// 4: "statusRank"
const infos = difficulty.match(/^@([TS]):([^|]+?)(?:\|(min|max)(?:\(([^)]+?)\))?)?$/);
const infos = difficulty.match(CONFIG.l5r5e.techniqueDifficulty);
if (!infos) {
console.log("L5R5E | Fail to parse difficulty", difficulty);
return false;