mirror of
				https://github.com/nsnail/spectre.console.git
				synced 2025-11-04 02:25:28 +08:00 
			
		
		
		
	fixed warning
This commit is contained in:
		
				
					committed by
					
						
						Patrik Svensson
					
				
			
			
				
	
			
			
			
						parent
						
							a6618f762c
						
					
				
				
					commit
					540bc1307c
				
			@@ -33,7 +33,7 @@ public partial class AnsiConsoleTests
 | 
				
			|||||||
            console.MarkupInterpolated($"[link={Path}]{Path}[/]");
 | 
					            console.MarkupInterpolated($"[link={Path}]{Path}[/]");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            // Then
 | 
					            // Then
 | 
				
			||||||
            var pathAsRegEx = Regex.Replace(Path, "([/\\[\\]\\\\])", "\\$1", RegexOptions.Compiled|RegexOptions.IgnoreCase);
 | 
					            var pathAsRegEx = Regex.Replace(Path, "([/\\[\\]\\\\])", "\\$1", RegexOptions.Compiled | RegexOptions.IgnoreCase);
 | 
				
			||||||
            console.Output.ShouldMatch($"\\]8;id=[0-9]+;{pathAsRegEx}\\\\{pathAsRegEx}\\]8;;\\\\");
 | 
					            console.Output.ShouldMatch($"\\]8;id=[0-9]+;{pathAsRegEx}\\\\{pathAsRegEx}\\]8;;\\\\");
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user