Update Common.cs
Replaced ASTERISK_VERSION regular expression to mach some others Asterisk Versions
This commit is contained in:
		
							parent
							
								
									86acf98e1a
								
							
						
					
					
						commit
						14e35febf3
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -17,7 +17,7 @@ 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+([0-9]+.[0-9]+.[0-9]+).*",
 | 
					        public static Regex ASTERISK_VERSION = new Regex("^Asterisk\\s+\\D*([0-9]+.[0-9]+.[0-9]+|[1-9][0-9]-r[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\\.]+)");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue