Fix Version Regex to handle with Output Prefix correctly
This commit is contained in:
		
							parent
							
								
									c23d932609
								
							
						
					
					
						commit
						efb10600f3
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -18,8 +18,8 @@ namespace AsterNET
 | 
				
			||||||
        /// <summary>Line separator</summary>
 | 
					        /// <summary>Line separator</summary>
 | 
				
			||||||
        public const string LINE_SEPARATOR = "\r\n";
 | 
					        public const string LINE_SEPARATOR = "\r\n";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public static Regex ASTERISK_VERSION = new Regex( "^Asterisk\\s+\\D*([0-9]+\\.[0-9]+\\.[0-9]+|[1-9][0-9]-r[0-9]+|[0-9]+\\.[0-9]+-cert[0-9]).*$",
 | 
					        public static Regex ASTERISK_VERSION = new Regex("^(?:Output: ){0,1}Asterisk\\s+\\D*([0-9]+\\.[0-9]+\\.[0-9]+|[1-9][0-9]-r[0-9]+|[0-9]+\\.[0-9]+-cert[0-9]).*$",
 | 
				
			||||||
                    RegexOptions.Compiled | RegexOptions.IgnoreCase );
 | 
					                          RegexOptions.Compiled | RegexOptions.IgnoreCase );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public static Regex SHOW_VERSION_FILES_PATTERN = new Regex("^([\\S]+)\\s+Revision: ([0-9\\.]+)");
 | 
					        public static Regex SHOW_VERSION_FILES_PATTERN = new Regex("^([\\S]+)\\s+Revision: ([0-9\\.]+)");
 | 
				
			||||||
        public static char[] RESPONSE_KEY_VALUE_SEPARATOR = {':'};
 | 
					        public static char[] RESPONSE_KEY_VALUE_SEPARATOR = {':'};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue