Skip to content

Commit

Permalink
move variable r declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwendt committed May 12, 2022
1 parent 308040d commit 8f5cde7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/strings/replace/backref_re.cu
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ std::string get_backref_pattern(std::string_view repl)
{
std::string const backslash_pattern = "\\\\(\\d+)";
std::string const bracket_pattern = "\\$\\{(\\d+)\\}";
std::string const r{repl};
std::smatch m;
std::string r{repl};
return std::regex_search(r, m, std::regex(backslash_pattern)) ? backslash_pattern
: bracket_pattern;
}
Expand Down

0 comments on commit 8f5cde7

Please sign in to comment.