Skip to content

Commit

Permalink
Fix warning for vars_to_approximate
Browse files Browse the repository at this point in the history
  • Loading branch information
shota-matsumoto-lm committed Feb 19, 2024
1 parent 0b12def commit 538acc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/symbolic_simulate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ void add_vars_from_string(string vars_list_string, set<string> &set_to_add,
string buffer;
while (std::getline(sstr, buffer, ',')) {
trim_front_and_behind_space(buffer);
regex re("^\l[\l\d]*'*$");
regex re(R"(^[a-z][a-z\d]*'*$)");
smatch match;
if (!regex_search(buffer, match, re)) {
cout << warning_prefix << " warning : \"" << buffer
Expand Down

0 comments on commit 538acc5

Please sign in to comment.