From 09ab8e0ca65e1bf035bad130e1b062a445e0af52 Mon Sep 17 00:00:00 2001 From: Martin Marmsoler Date: Tue, 29 Aug 2023 17:31:40 +0200 Subject: [PATCH] fix regex --- cmake/generate_appdata.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/generate_appdata.cmake b/cmake/generate_appdata.cmake index 6fc5e94c..e823f92c 100644 --- a/cmake/generate_appdata.cmake +++ b/cmake/generate_appdata.cmake @@ -6,6 +6,6 @@ string(REGEX REPLACE "

([^<]*)<\\/p>" "\\1" RELEASES ${HTML_CHANGELOGS}) # rem string(REGEX REPLACE "

([A-Za-z0-9]*)<\\/h4>" "

\\1

" 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 - (WIP)" can be used to show in the changelog the current progress -string(REGEX REPLACE "

(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>" "\n\t" RELEASES ${RELEASES}) +string(REGEX REPLACE "

((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>" "\n\t" RELEASES ${RELEASES}) string(REGEX REPLACE "
" "
\n\t
" RELEASES ${RELEASES}) configure_file(${APPDATA_CONF} ${APPDATA})