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 <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2016-12-31 13:58:35 +01:00
parent b4387d387d
commit af59d52ddf
1 changed files with 1 additions and 1 deletions

View File

@ -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()