From 016e4463bdbf29c283f45059a1e43063a6a0bf67 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Wed, 18 Dec 2024 17:36:47 +0100 Subject: [PATCH] Support d'apostrophe dans les noms v2: simple escape seulement --- 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 71b29ce7..446df267 100644 --- a/module/apps/rdd-import-stats.js +++ b/module/apps/rdd-import-stats.js @@ -496,9 +496,9 @@ 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.toLowerCase());