Skip to content

Commit

Permalink
fix parsing of relative branch paths
Browse files Browse the repository at this point in the history
  • Loading branch information
trapexit committed Feb 12, 2021
1 parent f6e3767 commit ed0c1db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/branch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ namespace l
{
uint64_t offset;

offset = s_.find_first_of('/');
offset = s_.find_first_not_of("+<>-=");
if(offset > 1)
offset = 2;
*instr_ = s_.substr(0,offset);
if(offset != std::string::npos)
*values_ = s_.substr(offset);
Expand Down

0 comments on commit ed0c1db

Please sign in to comment.