Skip to content

Commit

Permalink
Make expandRegex()'s comment more descriptive
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@intel.com>
  • Loading branch information
rojkov committed Jan 11, 2021
1 parent d4d9553 commit 7e4d7f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/common/config/well_known_names.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ namespace Config {

namespace {

// Replaces regex placeholders with actual regexes.
// To allow for more readable regular expressions to be declared below, and to
// reduce duplication, define a few common pattern substitutions for regex
// segments.
std::string expandRegex(const std::string& regex) {
return absl::StrReplaceAll(
regex, {// Regex to look for either IPv4 or IPv6 addresses.
Expand Down

0 comments on commit 7e4d7f2

Please sign in to comment.