]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FSCORE-677
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 23 Sep 2010 18:33:33 +0000 (13:33 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 23 Sep 2010 18:33:33 +0000 (13:33 -0500)
src/switch_regex.c

index 88152f978f8ae14ef05cbdf4050f158b1fbf0112..38c527cc0abe7141e04b04e2d966b27b729c68fd 100644 (file)
@@ -215,7 +215,7 @@ SWITCH_DECLARE(switch_status_t) switch_regex_match_partial(const char *target, c
        if (match_count > 0) {
                *partial = 0;
                return SWITCH_STATUS_SUCCESS;
-       } else if (match_count == PCRE_ERROR_PARTIAL) {
+       } else if (match_count == PCRE_ERROR_PARTIAL || match_count == PCRE_ERROR_BADPARTIAL) {
                /* yes it is already set, but the code is clearer this way */
                *partial = 1;
                return SWITCH_STATUS_SUCCESS;