From 47468490d649fecade6c62a82d41325eb14f7250 Mon Sep 17 00:00:00 2001 From: borednuna Date: Thu, 7 Dec 2023 05:58:31 +0700 Subject: [PATCH] fix: remove / at the beginning of action name --- src/akushon/action/node/action_manager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/akushon/action/node/action_manager.cpp b/src/akushon/action/node/action_manager.cpp index b14ef80..6919c3b 100644 --- a/src/akushon/action/node/action_manager.cpp +++ b/src/akushon/action/node/action_manager.cpp @@ -74,6 +74,9 @@ void ActionManager::load_config(const std::string & path) for (int i = path.length(); i < file_name.length() - extension_json.length(); i++) { name += file_name[i]; } + + // remove "/" from the start of the name string + name.erase(0, 1); try { std::ifstream file(file_name); nlohmann::json action_data = nlohmann::json::parse(file);