From 14e35febf388bc9ddc6406e06b32a233efea92c2 Mon Sep 17 00:00:00 2001 From: Diego Montesinos Date: Fri, 13 Mar 2015 13:28:52 +0100 Subject: [PATCH] Update Common.cs Replaced ASTERISK_VERSION regular expression to mach some others Asterisk Versions --- Asterisk.2013/Asterisk.NET/Common.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Asterisk.2013/Asterisk.NET/Common.cs b/Asterisk.2013/Asterisk.NET/Common.cs index 66a089a..8070fd4 100644 --- a/Asterisk.2013/Asterisk.NET/Common.cs +++ b/Asterisk.2013/Asterisk.NET/Common.cs @@ -17,8 +17,8 @@ namespace AsterNET /// Line separator public const string LINE_SEPARATOR = "\r\n"; - public static Regex ASTERISK_VERSION = new Regex("^Asterisk\\s+([0-9]+.[0-9]+.[0-9]+).*", - RegexOptions.Compiled | RegexOptions.IgnoreCase); + 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); public static Regex SHOW_VERSION_FILES_PATTERN = new Regex("^([\\S]+)\\s+Revision: ([0-9\\.]+)"); public static char[] RESPONSE_KEY_VALUE_SEPARATOR = {':'}; @@ -63,4 +63,4 @@ namespace AsterNET #endregion } -} \ No newline at end of file +}