Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Hotfix] Remove enhanced comment and preceding whitespace from str… #577

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/library/initialize/initialize_file_access.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading