Skip to content

Commit

Permalink
[CBRD-22793] fix regression of #1509 (#2181)
Browse files Browse the repository at this point in the history
  • Loading branch information
hgryoo authored Jan 17, 2020
1 parent 64785fd commit b174184
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cci/cci_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -986,8 +986,8 @@ cci_url_match (const char *src, char *token[])
std::regex reg (pattern, ECMAScript | icase);

std::cmatch match;
bool searched = std::regex_search (src, match, reg);
if (searched)
bool is_matched = std::regex_match (src, match, reg);
if (is_matched)
{
int num_matches = match.size ();
for (int i = 0; match_idx[i] != -1 && match_idx[i] < num_matches; i++)
Expand Down

0 comments on commit b174184

Please sign in to comment.