Skip to content

Commit

Permalink
fix regex for some compliers (not sure why it works in some and not i…
Browse files Browse the repository at this point in the history
…n others...)
  • Loading branch information
marekkokot committed Jan 13, 2024
1 parent 2049648 commit 14a914b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kmc_tools/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ CParser::CParser(const std::string& src):
exit(1);
}
//input_line_pattern = "\\s*(\\w*)\\s*=\\s*(.*)$";
input_line_pattern = "^\\s*([\\w-+]*)\\s*=\\s*(.*)$";
input_line_pattern = "^\\s*([\\w+-]*)\\s*=\\s*(.*)$";
output_line_pattern = "^\\s*(.*)\\s*=\\s*(.*)$"; //TODO: consider valid file name
empty_line_pattern = "^\\s*$";
}
Expand Down

0 comments on commit 14a914b

Please sign in to comment.