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'));