Skip to content

Commit 8b133f5

Browse files
committed
moved special_characters inside function body
1 parent 3a0bfe3 commit 8b133f5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/util_regex.hpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ create_regex_definition(const std::string& step)
6363
return {result, type_info};
6464
}
6565

66-
static const std::unordered_set<char> special_chars = {
67-
'.', '^', '$', '*', '+', '?', '[', ']', /* '(', ')', */ '\\',
68-
/* '|' */};
69-
7066
static std::string add_escape_chars(const std::string& input)
7167
{
68+
static const std::unordered_set<char> special_chars = {
69+
'.', '^', '$', '*', '+', '?', '[', ']', /* '(', ')', */ '\\',
70+
/* '|' */};
71+
7272
std::string result;
7373
for (char c : input)
7474
{

0 commit comments

Comments
 (0)