We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7c890c commit 30aa433Copy full SHA for 30aa433
1 file changed
drogon_ctl/create_swagger.cc
@@ -111,7 +111,7 @@ class StructNode
111
LOG_DEBUG << "findClass: " << content;
112
if (content.empty())
113
return {nullptr, ""};
114
- std::regex rx(R"(class[ \r\n]+([^ \r\n]+)[ \r\n]+)");
+ std::regex rx(R"(class[ \r\n]+([^ \r\n\{]+)[ \r\n\{:]+)");
115
std::smatch results;
116
if (std::regex_search(content, results, rx))
117
{
0 commit comments