Skip to content

Commit

Permalink
Fixing the Problem when a / is in the finding Text(").
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Feustel committed Apr 24, 2024
1 parent 193f937 commit ef80122
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/src/Data/ItemPath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ ItemPath::ItemPath(const std::string& path)

while (pathss) {
std::string component;
if (pathss.peek() == '\"') {
getline(pathss, component, '\"');
getline(pathss, component, '\"');
component = '\"' + component + '\"';
m_components.push_back(std::move(component));
}
getline(pathss, component, '/');
if (component.length() > 0) {
m_components.push_back(std::move(component));
Expand Down

0 comments on commit ef80122

Please sign in to comment.