From 1dfab01c4b48d4802b2196de5ee56fc68dcad3f9 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Wed, 18 Dec 2024 17:36:15 +0100 Subject: [PATCH] =?UTF-8?q?Support=20espace=20ins=C3=A9cable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dans le poids, on a généralement un espace insécable --- module/apps/rdd-import-stats.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/apps/rdd-import-stats.js b/module/apps/rdd-import-stats.js index bb0b9509..71b29ce7 100644 --- a/module/apps/rdd-import-stats.js +++ b/module/apps/rdd-import-stats.js @@ -429,9 +429,9 @@ export class RdDStatBlockParser { actorData.taille = taille.value; } // Get weight - const poids = XRegExp.exec(statString, XRegExp("(?\\d+ kg)", 'giu')); + const poids = XRegExp.exec(statString, XRegExp(",\\s+(?\\d+)\\s+kg", 'giu')); if (poids?.value) { - actorData.poids = poids.value; + actorData.poids = poids.value + ' kg'; } // Get cheveux const cheveux = XRegExp.exec(statString, XRegExp("kg,\\s+(?[A-Za-zÀ-ÖØ-öø-ÿ\\s\\-]+),\\s+yeux", 'giu'));