Skip to content

Commit 214b800

Browse files
committed
fix config comment tags
1 parent 2f1dd2e commit 214b800

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/context.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ void APPContext::FromConfig() {
831831

832832
if (!lastTag.empty()) {
833833
std::string tagName(lastTag);
834-
lastTag.substr(0, comment.size());
834+
lastTag = {lastTag.begin(), comment.end()};
835835
size_t dataBegin = lastTag.find_first_of('\n');
836836

837837
if (dataBegin != lastTag.npos) {

0 commit comments

Comments
 (0)