adjust changelog version regex for cur. version

Allow matching text after version and before date.

Matches current version 2.0.2 .
This commit is contained in:
Rafael Kitover 2018-03-17 12:32:27 -04:00
parent 61e2f3b284
commit 8540860ab8
1 changed files with 1 additions and 1 deletions

View File

@ -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}")