From 8540860ab8697f68deaa8b6fed33e3031268d827 Mon Sep 17 00:00:00 2001 From: Rafael Kitover Date: Sat, 17 Mar 2018 12:32:27 -0400 Subject: [PATCH] adjust changelog version regex for cur. version Allow matching text after version and before date. Matches current version 2.0.2 . --- cmake/ChangeLogVersion.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/ChangeLogVersion.cmake b/cmake/ChangeLogVersion.cmake index 101d23bd..7d93b97a 100644 --- a/cmake/ChangeLogVersion.cmake +++ b/cmake/ChangeLogVersion.cmake @@ -9,7 +9,7 @@ function(changelog_version version revision version_release) return() endif() - string(REGEX MATCH "\n## +\\[([0-9.]+)(-([^] ]+))?\\] +- +[0-9][0-9]?/" match_out "${changelog_file}") + string(REGEX MATCH "\n## +\\[([0-9.]+)(-([^] ]+))?\\] +.* +[0-9][0-9]?/" match_out "${changelog_file}") set(changelog_version "${CMAKE_MATCH_1}")