Fix import de creatures sans heure de naissance
This commit is contained in:
parent
6479f00642
commit
2a164f6a32
@ -17,7 +17,8 @@ const XREGEXP_COMP_CREATURE = WHITESPACES + "(?<carac>\\d+)"
|
||||
|
||||
// Skill parser depending on the type of actor
|
||||
const compParser = {
|
||||
personnage: "(\\D+)*" + WHITESPACES + NUMERIC_VALUE,
|
||||
//personnage: "(\\D+)*" + WHITESPACES + NUMERIC_VALUE,
|
||||
personnage: WHITESPACES + NUMERIC_VALUE,
|
||||
creature: XREGEXP_COMP_CREATURE,
|
||||
entite: XREGEXP_COMP_CREATURE
|
||||
}
|
||||
@ -379,7 +380,7 @@ export class RdDStatBlockParser {
|
||||
case "personnage":
|
||||
// Check if ',né le' is present
|
||||
let namePersonnage = "Importé"
|
||||
if (statString.match(/, né le/)) {
|
||||
if (statString.match(/,\\s+né/)) {
|
||||
// Name is all string before first comma ','
|
||||
namePersonnage = XRegExp.exec(statString, XRegExp("(?<value>[\\p{Letter}\\s\\d]+),", 'giu'));
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user