Skip to content

Commit

Permalink
moved special_characters inside function body
Browse files Browse the repository at this point in the history
  • Loading branch information
ThoSe1990 committed Nov 13, 2024
1 parent 3a0bfe3 commit 8b133f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/util_regex.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ create_regex_definition(const std::string& step)
return {result, type_info};
}

static const std::unordered_set<char> special_chars = {
'.', '^', '$', '*', '+', '?', '[', ']', /* '(', ')', */ '\\',
/* '|' */};

static std::string add_escape_chars(const std::string& input)
{
static const std::unordered_set<char> special_chars = {
'.', '^', '$', '*', '+', '?', '[', ']', /* '(', ')', */ '\\',
/* '|' */};

std::string result;
for (char c : input)
{
Expand Down

0 comments on commit 8b133f5

Please sign in to comment.