mirror of
				https://github.com/zoriya/Kyoo.git
				synced 2025-10-31 10:37:13 -04:00 
			
		
		
		
	Add guid parsing in filters
This commit is contained in:
		
							parent
							
								
									f4442fad0c
								
							
						
					
					
						commit
						a218271001
					
				| @ -172,6 +172,13 @@ public abstract record Filter<T> : Filter | ||||
| 					select float.Parse($"{a}.{b}") as object; | ||||
| 			} | ||||
| 
 | ||||
| 			if (type == typeof(Guid)) | ||||
| 			{ | ||||
| 				return | ||||
| 					from guid in Parse.Regex(@"[({]?[a-fA-F0-9]{8}[-]?([a-fA-F0-9]{4}[-]?){3}[a-fA-F0-9]{12}[})]?", "Guid") | ||||
| 					select Guid.Parse(guid) as object; | ||||
| 			} | ||||
| 
 | ||||
| 			if (type == typeof(string)) | ||||
| 			{ | ||||
| 				return ( | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user