From 2a507cddafd1652aa743b58ef7bd3c2fd921da35 Mon Sep 17 00:00:00 2001 From: Toshihiro Suzuki Date: Fri, 19 Jan 2024 20:58:40 +0900 Subject: [PATCH 1/2] [IniAccess] Remove enhanced comment and preceding whitespace from strings --- src/library/initialize/initialize_file_access.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/library/initialize/initialize_file_access.cpp b/src/library/initialize/initialize_file_access.cpp index 82d555ea5..b05e31e98 100644 --- a/src/library/initialize/initialize_file_access.cpp +++ b/src/library/initialize/initialize_file_access.cpp @@ -161,6 +161,9 @@ std::string IniAccess::ReadString(const char* section_name, const char* key_name value = ini_reader_.GetString(section_name, key_name, "NULL"); #endif // Special characters + // Inline comments + std::regex inline_comment_pattern("\\s*//.*"); + value = std::regex_replace(value, inline_comment_pattern, ""); // INI_FILE_DIR std::string ini_path = INI_FILE_DIR_FROM_EXE; value = std::regex_replace(value, std::regex("INI_FILE_DIR_FROM_EXE"), ini_path); From 85d3d2579d29c4f1bd34409bbef30c55513129e9 Mon Sep 17 00:00:00 2001 From: Toshihiro Suzuki Date: Fri, 19 Jan 2024 21:08:23 +0900 Subject: [PATCH 2/2] [Chore] Patch version update 7.2.2 --> 7.2.3 in CMakeLists.txt --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 34829f627..6c8b705b7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.13) project(S2E LANGUAGES CXX DESCRIPTION "S2E: Spacecraft Simulation Environment" - VERSION 7.2.2 + VERSION 7.2.3 ) # build config