From 0e19201a9e9d32404e3aa1903d747b0895de7f3a Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Fri, 31 Jan 2025 18:16:36 +0100 Subject: [PATCH] =?UTF-8?q?Support=20comp=C3=A9tences=20avec=20chiffres/ti?= =?UTF-8?q?rets?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/apps/textroll/text-roll-carac-competence.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/apps/textroll/text-roll-carac-competence.js b/module/apps/textroll/text-roll-carac-competence.js index 7c2f5572..aba13fa1 100644 --- a/module/apps/textroll/text-roll-carac-competence.js +++ b/module/apps/textroll/text-roll-carac-competence.js @@ -5,7 +5,7 @@ import { RdDUtility } from "../../rdd-utility.js"; import { TextRollManager } from "./text-roll-formatter.js"; const REGECP_CARAC = "(?[A-Za-zÀ-ÖØ-öø-ÿ\\s\\-]+)" -const REGEXP_COMP = "(\\/(?[A-Za-zÀ-ÖØ-öø-ÿ\\s\\-]+))?" +const REGEXP_COMP = "(\\/(?[A-Za-z0-9À-ÖØ-öø-ÿ -]+))?" const REGEXP_DIFF = "(/(?[\\+\\-]?\\d+(d\\d+)?))?" const REGEXP_ROLL_CARAC_COMP = REGECP_CARAC + REGEXP_COMP + REGEXP_DIFF const XREGEXP_ROLL_CARAC_COMP = XRegExp("@roll\\[" + REGEXP_ROLL_CARAC_COMP + "\\]", 'giu')