From 14a914bb02e7cb1d61c40b7604f845f1ffcbc42a Mon Sep 17 00:00:00 2001 From: marekkokot Date: Sat, 13 Jan 2024 12:49:24 +0100 Subject: [PATCH] fix regex for some compliers (not sure why it works in some and not in others...) --- kmc_tools/parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmc_tools/parser.cpp b/kmc_tools/parser.cpp index 6b6f989..ccb366f 100644 --- a/kmc_tools/parser.cpp +++ b/kmc_tools/parser.cpp @@ -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*$"; }