fix regex

This commit is contained in:
Martin Marmsoler 2023-08-29 17:31:40 +02:00
parent 6edac2ccb5
commit 09ab8e0ca6

View File

@ -6,6 +6,6 @@ string(REGEX REPLACE "<p>([^<]*)<\\/p>" "\\1" RELEASES ${HTML_CHANGELOGS}) # rem
string(REGEX REPLACE "<h4>([A-Za-z0-9]*)<\\/h4>" "<p>\\1</p>" RELEASES ${RELEASES}) # h4 is unknow to appdata so change it to a paragraph environment
string(REPLACE "\n" "\n\t" RELEASES ${RELEASES}) # add tabulator
# For Dev Version "vX.X.X - <current date> (WIP)" can be used to show in the changelog the current progress
string(REGEX REPLACE "<h3>(v[1-9]\\.[0-9]\\.[0-9]|vX\\.X\\.X) - ([0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]) \\((WIP){0,1}\\)<\\/h3>" "<release version='\\1' date='\\2'>\n\t<description>" RELEASES ${RELEASES})
string(REGEX REPLACE "<h3>((v[1-9]\\.[0-9]\\.[0-9])|(vX\\.X\\.X)) - ([0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9])( \\(WIP\\)){0,1}<\\/h3>" "<release version='\\1' date='\\2'>\n\t<description>" RELEASES ${RELEASES})
string(REGEX REPLACE "<hr \\/>" "</description>\n\t</release>" RELEASES ${RELEASES})
configure_file(${APPDATA_CONF} ${APPDATA})