From a87a4d371e76dfa494f6c7ea73c7a0e9b295d4d0 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Sat, 14 Dec 2024 01:02:19 +0100 Subject: [PATCH] =?UTF-8?q?Import=20de=20Nom=20avec=20tiret=20de=20s=C3=A9?= =?UTF-8?q?paration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/apps/rdd-import-stats.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/apps/rdd-import-stats.js b/module/apps/rdd-import-stats.js index fc91665b..4cff1ab7 100644 --- a/module/apps/rdd-import-stats.js +++ b/module/apps/rdd-import-stats.js @@ -479,12 +479,12 @@ export class RdDStatBlockParser { let namePersonnage = "Importé" if (statString.includes(", né")) { // Name is all string before first comma ',' - namePersonnage = XRegExp.exec(statString, XRegExp("(?[\\p{Letter}\\s\\d]+),", 'giu')); + namePersonnage = XRegExp.exec(statString, XRegExp("(?[\\p{Letter}\\-\\s\\d]+),", 'giu')); } else { - namePersonnage = XRegExp.exec(statString, XRegExp("(?[\\p{Letter}\\s\\d]+)\\s+TAILLE", 'giu')); + namePersonnage = XRegExp.exec(statString, XRegExp("(?[\\p{Letter}\\-\\s\\d]+)\\s+TAILLE", 'giu')); } if (namePersonnage?.value) { - return Misc.upperFirst(namePersonnage?.value); + return Misc.upperFirst(namePersonnage?.value.toLowerCase()); } } const name = XRegExp.exec(statString, XRegExp("(?.+)\\s+taille", 'giu'));