mirror of
				https://github.com/Nioux/AideDeJeu.git
				synced 2025-10-30 23:16:09 +00:00 
			
		
		
		
	Parsing sorts vo
This commit is contained in:
		
							parent
							
								
									80df171c5e
								
							
						
					
					
						commit
						0ea81a15d0
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -26,7 +26,7 @@ namespace AideDeJeuLib.Spells | |||
|                 { | ||||
|                     re = new Regex("(?<type>.*), (?<level>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 (?<level>\\d) - (?<type>.*?) ?(?<rituel>\\(ritual\\))?"); | ||||
|                         //re = new Regex("level (?<level>\\d) - (?<type>.*?)\\w?(?<rituel>\\(ritual\\))?"); | ||||
|                         re = new Regex("(?<level>\\d) - (?<type>.*)\\w?(?<rituel>\\(ritual\\))?"); | ||||
|                         match = re.Match(value); | ||||
|                         this.Type = match.Groups["type"].Value; | ||||
|                         this.Level = match.Groups["level"].Value; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yan Maniez
						Yan Maniez