Skip to content

Commit

Permalink
Library: cleaned up usage of Container::startPattern2
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Jan 23, 2024
1 parent 596e463 commit 63dde63
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,9 @@ Library::Error Library::load(const tinyxml2::XMLDocument &doc)
const char* const startPattern = node->Attribute("startPattern");
if (startPattern) {
container.startPattern = startPattern;
container.startPattern2 = container.startPattern + " !!::";
container.startPattern2 = startPattern;
if (!endsWith(container.startPattern, '<'))
container.startPattern2 += " !!::";
}
const char* const endPattern = node->Attribute("endPattern");
if (endPattern)
Expand Down

0 comments on commit 63dde63

Please sign in to comment.