From e71088fe2fa5f4d6e5856b24938ae7006142bda3 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Tue, 26 Nov 2024 22:48:23 +0100 Subject: [PATCH] Fix sorts r1+ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ne pas mettre d'espace entre le r et une valeur commençant comme un nombre --- module/actor/export-scriptarium/mapping.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/actor/export-scriptarium/mapping.js b/module/actor/export-scriptarium/mapping.js index 6d1fc29b..cae270b9 100644 --- a/module/actor/export-scriptarium/mapping.js +++ b/module/actor/export-scriptarium/mapping.js @@ -260,7 +260,7 @@ export class Mapping { } static addSpaceToNonNumeric(value) { - return Number.isNumeric(value) ? value : ' ' + Mapping.toVar(value) + return Number.isNumeric(value) || /[-\d].*/.match(String(value)) ? value : ' ' + Mapping.toVar(value) } static toVar(value) {