From 0ea81a15d05981aa5053dd2250e256b0b627ec14 Mon Sep 17 00:00:00 2001 From: Yan Maniez Date: Fri, 22 Jun 2018 17:47:39 +0200 Subject: [PATCH] Parsing sorts vo --- AideDeJeu/AideDeJeu/Models/Spells/Spell.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/AideDeJeu/AideDeJeu/Models/Spells/Spell.cs b/AideDeJeu/AideDeJeu/Models/Spells/Spell.cs index 0b0fde02..695ab415 100644 --- a/AideDeJeu/AideDeJeu/Models/Spells/Spell.cs +++ b/AideDeJeu/AideDeJeu/Models/Spells/Spell.cs @@ -26,7 +26,7 @@ namespace AideDeJeuLib.Spells { re = new Regex("(?.*), (?tour de magie)"); match = re.Match(value); - if(match.Groups["level"].Value == "tour de magie") + if (match.Groups["level"].Value == "tour de magie") { this.Type = match.Groups["type"].Value; this.Level = "0"; // match.Groups["level"].Value; @@ -35,7 +35,8 @@ namespace AideDeJeuLib.Spells else { System.Diagnostics.Debug.WriteLine(value); - re = new Regex("level (?\\d) - (?.*?) ?(?\\(ritual\\))?"); + //re = new Regex("level (?\\d) - (?.*?)\\w?(?\\(ritual\\))?"); + re = new Regex("(?\\d) - (?.*)\\w?(?\\(ritual\\))?"); match = re.Match(value); this.Type = match.Groups["type"].Value; this.Level = match.Groups["level"].Value;