]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
nm
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 18 Jan 2010 22:17:58 +0000 (22:17 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 18 Jan 2010 22:17:58 +0000 (22:17 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16397 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_regex.c

index de56e74754c9b80e891efd78f73b7baddef142a6..cb567395fd7feb7fdf7f0be65531fbd13405cfba 100644 (file)
@@ -154,9 +154,6 @@ SWITCH_DECLARE(void) switch_perform_substitution(switch_regex_t *re, int match_c
                                num = -1;
                        }
                        
-                       /* make $1 start where it matched in | sep list */
-                       num += (match_count-2);
-                       
                        if (pcre_copy_substring(field_data, ovector, match_count, num, replace, sizeof(replace)) > 0) {
                                switch_size_t r;
                                for (r = 0; r < strlen(replace); r++) {