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:
parent
61e2f3b284
commit
8540860ab8
|
@ -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}")
|
||||
|
||||
|
|
Loading…
Reference in New Issue