[Freeswitch-svn] [commit] r6620 - freeswitch/trunk/src

Freeswitch SVN brian at freeswitch.org
Mon Dec 10 22:28:35 EST 2007


Author: brian
Date: Mon Dec 10 22:28:35 2007
New Revision: 6620

Modified:
   freeswitch/trunk/src/switch_regex.c

Log:
this wasn't right wrap in paren to get  in multi pipe sep regexp.

Modified: freeswitch/trunk/src/switch_regex.c
==============================================================================
--- freeswitch/trunk/src/switch_regex.c	(original)
+++ freeswitch/trunk/src/switch_regex.c	Mon Dec 10 22:28:35 2007
@@ -146,12 +146,7 @@
 			}
 			index[z++] = '\0';
 			z = 0;
-			if (match_count > 1) {
-				int offset = match_count - 2;
-				num = atoi(index) + offset;
-			} else {
-				num = atoi(index);
-			}
+			num = atoi(index);
 
 			if (pcre_copy_substring(field_data, ovector, match_count, num, replace, sizeof(replace)) > 0) {
 				switch_size_t r;



More information about the Freeswitch-svn mailing list