From af59d52ddfb2347428e225403bcd3a55790bc63a Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 31 Dec 2016 13:58:35 +0100 Subject: [PATCH] Slightly change DOC_HIDE magic The following commits will add DOC_HIDE uses that are not at the end of the line, but the beginning. Hence, drop the requirement that it appears at the end of the line and change the ".+" at the beginning into ".*". Signed-off-by: Uli Schlachter --- tests/examples/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/examples/CMakeLists.txt b/tests/examples/CMakeLists.txt index 294e678d..163546a9 100644 --- a/tests/examples/CMakeLists.txt +++ b/tests/examples/CMakeLists.txt @@ -57,7 +57,7 @@ function(escape_string variable content escaped_content line_prefix) set(tmp_output ${content}) foreach (LINE ${var_lines}) - if(NOT LINE MATCHES "^.+--DOC_[A-Z]+$") + if(NOT LINE MATCHES "^.*--DOC_[A-Z]+") set(tmp_output ${tmp_output}\n--${line_prefix}${LINE}) endif() endforeach()