From adfbc11eb89408e375c490fd677b358b7e54c7ba Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Wed, 19 Mar 2025 02:06:40 +0100 Subject: [PATCH] =?UTF-8?q?Consistance=20ch=C3=A8vre?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit La consistance chèvre est supportée (caractères accentués) --- changelog.md | 5 ++++- module/apps/textroll/text-roll-alchimie.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 385b0707..4b81a41c 100644 --- a/changelog.md +++ b/changelog.md @@ -1,7 +1,10 @@ # 12.0 -## 120.0.47 +## 12.0.48 - La chèvre d'Astrobazzarh +- la consistance chèvre est maintenant possible dans les recettes + alchimiques (et toutes les consistances avec accents) +## 12.0.47 - Correction sur les mise à jour en cascade - - Correction sur le force rendering après un changement de competence diff --git a/module/apps/textroll/text-roll-alchimie.js b/module/apps/textroll/text-roll-alchimie.js index 6733754d..e7c2f176 100644 --- a/module/apps/textroll/text-roll-alchimie.js +++ b/module/apps/textroll/text-roll-alchimie.js @@ -5,7 +5,7 @@ import { RdDUtility } from "../../rdd-utility.js"; import { RdDAlchimie } from "../../rdd-alchimie.js"; import { TextRollManager } from "./text-roll-formatter.js"; -const REGEX_ALCHIMIE_TERMES = "(?(\\w|-)+)" +const REGEX_ALCHIMIE_TERMES = "(?([-A-Za-zÀ-ÖØ-öø-ÿ ])+)" const REGEX_ALCHIMIE_MANIP = "(?(couleur|consistance))" const XREGEXP_ROLL_ALCHIMIE = XRegExp("@roll\\[" + REGEX_ALCHIMIE_MANIP + "\\s+" + REGEX_ALCHIMIE_TERMES + "\\]", 'giu') const XREGEXP_ROLL_ALCHIMIE_MANIP = XRegExp("@" + REGEX_ALCHIMIE_MANIP + "\\{" + REGEX_ALCHIMIE_TERMES + "\\}", 'giu')