Modify the 'create view' command of drogon_ctl (#208)
This commit is contained in:
parent
b55d53458c
commit
bf9313a164
|
@ -423,7 +423,7 @@ void create_view::newViewSourceFile(std::ofstream &file,
|
|||
buffer = line;
|
||||
if (buffer.length() > 0)
|
||||
{
|
||||
std::regex re("\\{%[ \\t]*([^ \\t%]*)[^%]*%\\}");
|
||||
std::regex re("\\{%[ \\t]*(((?!%\\}).)*[^ \\t])[ \\t]*%\\}");
|
||||
buffer = std::regex_replace(buffer, re, "<%c++$$$$<<$1;%>");
|
||||
}
|
||||
parseLine(file, buffer, streamName, viewDataName, cxx_flag);
|
||||
|
|
Loading…
Reference in New Issue