Skip to content

Commit 1f7140c

Browse files
committed
hotfix to get the changelog
1 parent 1cc68b6 commit 1f7140c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
66
set(CMAKE_CXX_EXTENSIONS OFF)
77

88
set(PROJECT_NAME "PetForDesktop")
9-
set(PROJECT_VERSION 1.3.0)
9+
set(PROJECT_VERSION 1.3.1)
1010
set(REL_RESOURCES_DIR "content")
1111

1212
set(ABS_RESOURCE_DIR "${CMAKE_SOURCE_DIR}/${REL_RESOURCES_DIR}")

include/Engine/Updater.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class Updater
115115
{
116116
if (matches[1] != "v" PROJECT_VERSION)
117117
{
118-
pattern = "\"body\":\\s*\"(.*?)\"";
118+
pattern = R"("body"\s*:\s*"([^"]*)\")";
119119
std::string content = std::string(PROJECT_NAME " ") + matches[1].str() + " is available. Do you want download it ?";
120120
// Looking for changelog
121121
if (std::regex_search(json, matches, pattern))

0 commit comments

Comments
 (0)