Fixes and small changes

This commit is contained in:
DomySh
2022-07-18 23:01:24 +02:00
parent 985a5f1f14
commit 139fe39130
5 changed files with 10 additions and 21 deletions

View File

@@ -8,7 +8,7 @@ using namespace std;
shared_ptr<regex_rules> regex_config;
void config_updater (){
string line, data;
string line;
while (true){
getline(cin, line);
if (cin.eof()){
@@ -23,6 +23,7 @@ void config_updater (){
istringstream config_stream(line);
regex_rules *regex_new_config = new regex_rules();
while(!config_stream.eof()){
string data;
config_stream >> data;
if (data != "" && data != "\n"){
regex_new_config->add(data.c_str());